Commit 0031bf1b8a9976595e38cc4e2b49124a79ff927d
Interface: fix getBalance
Alex Beregszaszi committed on 8/23/2016, 1:45:47 AMParent: 43a35e7919fee4280b215005f92daea320a80582
Files changed
interface.js | changed |
interface.js | ||
---|---|---|
@@ -100,9 +100,9 @@ | ||
100 | 100 | this.takeGas(20) |
101 | 101 | |
102 | 102 | const address = new Address(this.getMemory(addressOffset, constants.ADDRESS_SIZE_BYTES)) |
103 | 103 | // 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) | |
105 | 105 | this.setMemory(offset, constants.BALANCE_SIZE_BYTES, balance.toBuffer(constants.BALANCE_SIZE_BYTES)) |
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
Built with git-ssb-web