[WIP] Use infura hosted provider if web3 is not available #61

Closed
bumi wants to merge 2 commits from feature/infura-fallback-provider into master
bumi commented 2018-04-22 16:53:05 +00:00 (Migrated from github.com)

If the user does not have metamask or similar (no web3 provider is
availale) we will load data from the infura node.

No signer is available for the infura node but the ethers provider would
throw an error if we try to access it - so this moves the decision of
choosing the provider to the ethProvider function.

If the user does not have metamask or similar (no web3 provider is availale) we will load data from the infura node. No signer is available for the infura node but the ethers provider would throw an error if we try to access it - so this moves the decision of choosing the provider to the ethProvider function.
fsmanuel (Migrated from github.com) reviewed 2018-04-22 16:53:05 +00:00
bumi commented 2018-04-22 18:27:43 +00:00 (Migrated from github.com)

not sure if I like using the infura provider - at least not how this PR uses it - because that would make it impossible to run kredits-web WITHOUT metamask on a local network.

not sure if I like using the infura provider - at least not how this PR uses it - because that would make it impossible to run kredits-web WITHOUT metamask on a local network.
bumi commented 2018-06-14 15:00:56 +00:00 (Migrated from github.com)

we don't use the specific infura host but the general JSONRPC interface

we don't use the specific infura host but the general JSONRPC interface

Pull request closed

Sign in to join this conversation.