Replies: 1 comment 1 reply
-
@ihorbond, I just tried reproducing using the code you provided, it opens the metamask box for me (I don't get an error). Are you using something other than metamask? provider = new ethers.providers.Web3Provider(window.ethereum)
signer = await provider.getSigner() // no arg so using accounts[0]
console.log(provider, signer) // all good
tx = {to: ethers.constants.AddressZero, data: '0x1234' }
await signer.sendTransaction(tx) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys I'm using ethers with metamask like this
this results in
missing provider (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=abstract-signer/5.5.0)
what am I doing wrong ? I tried re-connecting the provider by calling
singer.connect(provider)
but it returnscannot alter JSON-RPC Signer connection (operation="connect", code=UNSUPPORTED_OPERATION, version=providers/5.5.0)
Beta Was this translation helpful? Give feedback.
All reactions