Commit c4e8c0c1c6d56c2694855ab10d0fc01edaf3c2c5
Interface: pad balances to 128 bits (and not 256 bits)
Alex Beregszaszi committed on 8/16/2016, 10:33:48 PMParent: dc345a6b3c23a49b736a6ae85494f4e5be6fb17d
Files changed
interface.js | changed |
interface.js | ||
---|---|---|
@@ -121,9 +121,9 @@ | ||
121 | 121 | * this execution and loads it into memory at the given location. |
122 | 122 | * @param {integer} offset |
123 | 123 | */ |
124 | 124 | callValue (offset) { |
125 | - this.setMemory(offset, constants.BALANCE_SIZE_BYTES, this.environment.callValue.toBuffer()) | |
125 | + this.setMemory(offset, constants.BALANCE_SIZE_BYTES, this.environment.callValue.toBuffer(constants.BALANCE_SIZE_BYTES)) | |
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
129 | 129 | * Get size of input data in current environment. This pertains to the input |
Built with git-ssb-web