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

Ensure Is Possible To Forward 0 Amount To Contract Calls #3777

Closed
Torres-ssf opened this issue Mar 14, 2025 · 0 comments · Fixed by #3776
Closed

Ensure Is Possible To Forward 0 Amount To Contract Calls #3777

Torres-ssf opened this issue Mar 14, 2025 · 0 comments · Fixed by #3776
Assignees
Labels
bug Issue is a bug

Comments

@Torres-ssf
Copy link
Contributor

While Sway/VM accepts it, forwarding a 0 amount to a contract call when using BaseInvocationScope is not possible.

This limitation exists because coinQuantityfy is used and it rounds any value below 1 up to 1.

However, contract logic can still utilize a 0 amount for specific validations, as all payable Sway functions require a forwarded amount to be provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant