coinbase-wallet-sdk: "Error: Unknown Ethereum address" on transactions on L2 networks (Optimism)

Unable to send transactions via WalletLink on Optimism with chainId 10. This might also be a WalletConnect issue for L2s specifically.

Error: Unknown Ethereum address
    at WalletLinkProvider._ensureKnownAddress (WalletLinkProvider.js?94ef:492:1)
    at WalletLinkProvider._prepareTransactionParams (WalletLinkProvider.js?94ef:502:1)
    at WalletLinkProvider._eth_sendTransaction (WalletLinkProvider.js?94ef:647:1)
    at WalletLinkProvider._handleAsynchronousMethods (WalletLinkProvider.js?94ef:437:1)
    at eval (WalletLinkProvider.js?94ef:392:1)
    at new Promise (<anonymous>)
    at WalletLinkProvider._sendRequestAsync (WalletLinkProvider.js?94ef:360:1)
    at WalletLinkProvider.request (WalletLinkProvider.js?94ef:296:1)
    at Web3Provider.eval [as jsonRpcFetchFunc] (web3-provider.js?b3d1:65:1)
    at Web3Provider.send (web3-provider.js?b3d1:129:1)
    at eval (json-rpc-provider.js?9643:186:1)

Transactions are going through for other connectors using web3-react (MetaMask, WalletConnect)

Related issue which was closed months ago and patched in web3-react v6: https://github.com/walletlink/coinbase-wallet-sdk/issues/149

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

@earthtojake if you are testing against your own dapp and updated to the latest walletlink, then that makes sense. the desktop extension injects its own version of walletlink into window.ethereum so the bug won’t be fixed until we do a new extension release, which should be within a week.

@earthtojake we will publish 2.6.7 tomorrow morning

@brendanww here are the values:

tx.from = "0x3ee80098615229a39920212171af51e67103f83b"
this.selectedAddress = "0x3EE80098615229A39920212171af51e67103f83B"
this._addresses = [
    "0x3EE80098615229A39920212171af51e67103f83B"
]

So looks like the address is being lowercased incorrectly.

ios for testing, haven’t tested the extension yet, I will do that shortly