-
-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: invalid BigNumber value "undefined" with gnosis safe app #579
Comments
Can you raise this on the Safe SDK repo? That error looks like it’s coming from ethers via Safe SDK. This doesn’t look like to be a viem issue. |
safe-global/safe-apps-sdk#480 (comment) That's the reply I got from the safe team We can of course send 0 instead of undefined for every call that do not use You also have to ignore the typescript error that is thrown based on the ABI (which is correct, because there shouldn't be a value for these calls) |
sorry lads I misread the issue |
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 Viem version. If you have any questions or comments you can create a new discussion thread. |
Is there an existing issue for this?
Package Version
0.3.36
Current Behavior
Hey,
I'm having an issue with contract writes that require the value to be
undefined
when connected to a safe. It seems that the safe SDK doesn't like that viem sends undefined as value?For example, this throws an error and you can't sign it from your safe:
But this works:
Expected Behavior
No response
Steps To Reproduce
No response
Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: