Pass ETH signer only if it can actually sign #67
Reference in New Issue
Block a user
Delete Branch "eth-signer-loading"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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).