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
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.
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.
we don't use the specific infura host but the general JSONRPC interface
Pull request closed