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

Add: if condition to check leftover being 0 #158

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iricehasan
Copy link

In the trigger_distribution() function, if leftover is 0, executing the function returns Error: Query failed with (6): rpc error: code = Unknown desc = failed to execute message; message index: 0: dispatch: submessages: : invalid coins [cosmos/cosmos-sdk@v0.47.6/x/bank/types/msgs.go:50] With gas wanted: '100000000' and gas used: '180393' : unknown request An if condition checking the case leftover being 0 solves this error.

In the trigger_distribution() function, if leftover is 0, executing the function returns ```Error: Query failed with (6): rpc error: code = Unknown desc = failed to execute message; message index: 0: dispatch: submessages: : invalid coins [cosmos/cosmos-sdk@v0.47.6/x/bank/types/msgs.go:50] With gas wanted: '100000000' and gas used: '180393' : unknown request``` An if condition checking the case leftover being 0 solves this 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 this pull request may close these issues.

None yet

1 participant