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

multitest returns error on BankMsg with 0 tokens #610

Closed
ethanfrey opened this issue Dec 28, 2021 · 0 comments · Fixed by #611
Closed

multitest returns error on BankMsg with 0 tokens #610

ethanfrey opened this issue Dec 28, 2021 · 0 comments · Fixed by #611
Assignees

Comments

@ethanfrey
Copy link
Member

This matches the actual behaviour of wasmd.

If you try BankMsg::Send{amount: vec![]} or BankMsg::Send{amount: coin(0, "foo")} you will get an error from the Cosmos SDK bank module. We should replicate this behaviour in the multitest system to detect such errors earlier on.

Check is amount.iter().filter(|x| !x.amount.is_zero()).len() == 0. In that case, return error

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 a pull request may close this issue.

1 participant