Skip to content
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

fix: resolve signature invalid error by including 'send' property in msgcall #100

Merged
merged 1 commit into from
Apr 6, 2024

Conversation

omarsy
Copy link
Contributor

@omarsy omarsy commented Apr 3, 2024

Today, when using Gnowallet and attempting to execute callMethod without funds in the parameters, we encounter a signature invalid error. This issue arises because during the signing process, we unintentionally omit the 'send' attribute, which is empty. However, on the backend, an empty string is utilized during marshaling https://github.com/gnolang/gno/blob/831bb6f92e1a2217242169dab1f4fd1f87e5eaa0/tm2/pkg/std/coin.go#L42-L61

@omarsy omarsy marked this pull request as draft April 3, 2024 16:04
@omarsy omarsy marked this pull request as ready for review April 3, 2024 16:07
Copy link
Member

@zivkovicmilos zivkovicmilos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix 🙏

Good catch 💯

@zivkovicmilos zivkovicmilos merged commit 79ef5ba into gnolang:main Apr 6, 2024
2 checks passed
@n0izn0iz n0izn0iz deleted the fix/msgcall-tojson branch April 8, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants