Pass ETH signer only if it can actually sign #67

Merged
bumi merged 1 commits from eth-signer-loading into master 2018-06-14 13:14:24 +00:00
bumi commented 2018-06-14 13:04:33 +00:00 (Migrated from github.com)

We have seen an "no accounts" invalid operation getAddress when trying
to call a contract function in the init calls.
It seems ethers has a problem with a signer that does not have any
accounts - even though we don't try to sign an actual transaction and
only read data from the contract.

This change only passes the signer if we have an unlocked web3 provider
(metamask).

We have seen an "no accounts" invalid operation getAddress when trying to call a contract function in the init calls. It seems ethers has a problem with a signer that does not have any accounts - even though we don't try to sign an actual transaction and only read data from the contract. This change only passes the signer if we have an unlocked web3 provider (metamask).
Sign in to join this conversation.