question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After connecting to Ambire Wallet, I try to sign a message and I get an "Invalid address" error

See original GitHub issue

Describe the bug

After connecting to Ambire Wallet, I try to sign a SIWE message with SignerCtrl from @web3modal/core and I get an “Invalid address” error.

SDK Version

@web3modal/core”: “^2.0.0-beta.3”, “@web3modal/ethereum”: “^2.0.0-beta.3”, “@web3modal/ui”: “^2.0.0-beta.3”,

To Reproduce

Steps to reproduce the behavior:

  1. Copy WalletConnect link from Web3Modal;
  2. Choose Ambire Wallet on Web3Modal;
  3. Go to wallet.ambire.com, paste the WalletConnect link on “Connect dApp” and successfully connect wallet to dapp;
  4. Try to sign a message with SignerCtrl.signMessage({ message: "..." }) from “@web3modal/core@^2.0.0-beta.3”;
  5. Get “Invalid address” error.

Expected behavior

The message should be successfully signed and complete sign in on my dapp

Screenshots

Screenshot 2022-11-13 at 19 26 28

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS Ventura 13.0.1
  • Browser [e.g. chrome, safari] Brave
  • Version [e.g. 22] Version 1.45.118 Chromium: 107.0.5304.91 (Official Build) (arm64)

Additional context

The very same message can be signed without issues with MetaMask injected wallet and with Exodus iOS wallet via WalletConnect.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ivshticommented, Nov 16, 2022

@IljaDaderko this also means that web3modal woud be broken with Argent, Gnosis Safe, Sequence and others.

Supporting smart contract wallet signatures is vital IMO

1reaction
0xAsimetriqcommented, Nov 15, 2022

I see, well if wagmi does not implement that soonish, you can always use modal in “standalone” mode (no wagmi / lightweight mode) that works with any dev-tooling.

here is an example of this with our v2 sign sdk https://github.com/WalletConnect/web3modal/blob/V2/examples/react-standalone/src/pages/index.tsx

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I receiving an "invalid address" error?
The "invalid address" error occurs when the address you try to send to does not match the network of your wallet. For example...
Read more >
Invalid signature error from ethers when trying to verify a ...
When testing with Metamask, everything is okay. When trying to verify a signature from Ambire wallet, I get "Error: invalid signature string" ...
Read more >
"Invalid Address" error for cryptocurrency withdrawal
If you see the "Invalid Address" error when trying to make a withdrawal, it means you are trying to: withdraw to an old...
Read more >
Invalid Address error when sending XDC coins - Ledger Support
This article describes how to solve the Invalid Address error when sending XDC coins from MyEtherWallet.This issue also affects MetaMask...
Read more >
Invalid Address Error when interacting with a smart contract ...
One reason this error can be thrown is if the web3.eth.accounts array is empty, which happens if the user has not signed in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found