git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 0031bf1b8a9976595e38cc4e2b49124a79ff927d

Interface: fix getBalance

Alex Beregszaszi committed on 8/23/2016, 1:45:47 AM
Parent: 43a35e7919fee4280b215005f92daea320a80582

Files changed

interface.jschanged
interface.jsView
@@ -100,9 +100,9 @@
100100 this.takeGas(20)
101101
102102 const address = new Address(this.getMemory(addressOffset, constants.ADDRESS_SIZE_BYTES))
103103 // call the parent contract and ask for the balance of one of its child contracts
104- const balance = this.environment.parent.environment.getBalance(address)
104+ const balance = this.environment.getBalance(address)
105105 this.setMemory(offset, constants.BALANCE_SIZE_BYTES, balance.toBuffer(constants.BALANCE_SIZE_BYTES))
106106 }
107107
108108 /**

Built with git-ssb-web