You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked there isn't already an issue for the bug I encountered.
Describe the bug
What I am doing:
Connect wallet via "metaMask" / "coinbase" connector.
Use "signMessage" / "signMessageAsync" from "useSignMessage".
What I expected:
Same signatures from MetaMask and CoinBase which I can verify with "verifyMessage" from "viem"
What is actually happening:
Signature from CoinBase is invalid: it's much longer and contains a lot of "0" chars. Also I can't verify it.
I tried to transform message to hash, to bites and prepare message through siwe library (according to CoinBase Smart Wallet documentation), but result was always the same.
This issue has been locked since it has been closed for more than 14 days.
If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new discussion thread.
Check existing issues
Describe the bug
What I am doing:
What I expected:
Same signatures from MetaMask and CoinBase which I can verify with "verifyMessage" from "viem"
What is actually happening:
Signature from CoinBase is invalid: it's much longer and contains a lot of "0" chars. Also I can't verify it.
I tried to transform message to hash, to bites and prepare message through siwe library (according to CoinBase Smart Wallet documentation), but result was always the same.
Link to Minimal Reproducible Example
No response
Steps To Reproduce
// use-sign-message.ts
export const useSignMessage = () => {
const { isConnected, address } = useAccount()
const { signMessageAsync } = useSignMessage()
const sign = async () => {
if (!isConnected || !address) {
throw new Error('Wallet is not connected')
}
}
return { sign }
}
What Wagmi package(s) are you using?
wagmi
Wagmi Package(s) Version(s)
2.13.3
Viem Version
2.19.1
TypeScript Version
5.5.4
Anything else?
react version: 18.3.1
vite version: 5.3.5
The text was updated successfully, but these errors were encountered: