When using thirdweb in-app wallet with wagmi (without smart account), transactions are being processed with 0 value regardless of the amount specified in the sendTransaction call. I believe other methods behave the same way.
Steps to reproduce
- Clone this repository: https://github.com/thirdweb-example/wagmi-inapp-smart-wallets
- Comment out the
smartAccount configuration in wagmi.ts:
export const config = createConfig({
chains: [chain],
connectors: [
inAppWalletConnector({
client,
// smartAccount: {
// chain: thirdwebChain(chain),
// sponsorGas: true,
// },
}),
],
transports: {
[chain.id]: http(),
},
});
- Try to send a transaction with a non-zero value in App.tsx:
<button onClick={() => sendTransaction({ to: account.address, value: parseEther("0.001") })} type="button">
- Check the transaction on the blockchain - it will show a value of 0.