Skip to content

Implements check balance to ensure caller have enough liquid balance to cover payable allocation#9

Open
GideonBature wants to merge 3 commits into
cube-btc:mainfrom
GideonBature:balance-check
Open

Implements check balance to ensure caller have enough liquid balance to cover payable allocation#9
GideonBature wants to merge 3 commits into
cube-btc:mainfrom
GideonBature:balance-check

Conversation

@GideonBature

Copy link
Copy Markdown
Contributor

This PR addresses TODO: CHECK ENOUGH BALANCE. in src/executive/vm/program_execution/exec.rs where the caller balance is checked to ensure it is sufficient enough to cover for the payable allocation value else an error is returned with the required amount and the available amount, the error is made to be detailed so that it will be easier to see the expected amount and the available balance.

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.

1 participant