Content
@
0 reply
1 recast
1 reaction
Daniel Fernandes
@dfern.eth
This is still happening, I connect to Zora over Walletconnect, hit mint, and I nearly submit an Ethereum Transaction going to nowhere when it was supposed to be on base. I always check the txn simulator, which is awesome! But there has to be some method to send all wallet requests with an associated chainID, so that both ends of the DApp-Wallet interface aren't out-of-sync on what chain they are supposed to be on. Maybe this is a WalletConnect problem and MWP would solve this?
2 replies
4 recasts
5 reactions
Vignesh
@vigneshka
Chainid handling is a nightmare between wallets. Viem can give you a false sense of security that a tx will be initiated on the right chain since it’s dependent on wallet behavior. To handle this, we have some logic before every transaction to asset the wallet is on the expected chain before the transaction prompt. For some wallets, automatic chain switching doesn’t work well, so then we have to toast the user to manually switch.
1 reply
1 recast
1 reaction
jxom
@jxom
Viem performs chain checks before every transaction, so this shouldn't happen.
1 reply
0 recast
1 reaction
jxom
@jxom
https://github.com/wevm/viem/blob/main/src/actions/wallet/sendTransaction.ts#L168-L172
1 reply
0 recast
1 reaction