Skip to content

Commit

Permalink
vm-mock: sum transfered coins to current contract balance
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjah committed Jun 3, 2024
1 parent 465d715 commit 352cca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm-mock/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ export default function createMockedABI(
},

assembly_script_get_balance() {
return BigInt(ledger.get(contractAddress).balance);
return BigInt(ledger.get(contractAddress).balance) + callCoins;
},

assembly_script_get_balance_for(aPtr) {
Expand Down

0 comments on commit 352cca1

Please sign in to comment.