From 352cca1c24d0b49598fbf6ad3ea400a72b8da2e9 Mon Sep 17 00:00:00 2001 From: Pierre Seznec Date: Fri, 31 May 2024 14:42:51 +0200 Subject: [PATCH] vm-mock: sum transfered coins to current contract balance --- vm-mock/vm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm-mock/vm.js b/vm-mock/vm.js index 8c1c1960..312aafed 100644 --- a/vm-mock/vm.js +++ b/vm-mock/vm.js @@ -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) {