Using the Smart Wallet connector for wagmi, I'm unable to deploy a contract instance but otherwise able to send transactions. In the JS console I see InvalidAddressError which I can only assume is because the wagmi/viem transaction builder sets tx.to to the zero address for contract deployments and this is not handled by Smart Wallet (???).
Deploying contract instances from the user smart wallet is kinda important for my use case.
Describe the bug
"Something went wrong" in contract deployment
Steps
Using the Smart Wallet connector for wagmi, I'm unable to deploy a contract instance but otherwise able to send transactions. In the JS console I see
InvalidAddressError
which I can only assume is because the wagmi/viem transaction builder setstx.to
to the zero address for contract deployments and this is not handled by Smart Wallet (???).Deploying contract instances from the user smart wallet is kinda important for my use case.
Minimum reproducible example:
https://codesandbox.io/p/live/a2da5e3a-178c-480f-bca1-f955940c3eba
Simple Storage Contract
useDeployContract Hook
Wagmi config
App Component
Expected behavior
No error should be returned, the smart wallet modal should allow the user to sign the tx
Version
latest
Additional info
Desktop
macOS, Chrome Version 125.0.6422.142 (Official Build) (arm64)
Smartphone
No response