Commit 15d2c0fc81dcbb3582ba95664973cd4a97055b02
changed sstore to use keys as hex strings
wanderer committed on 8/4/2016, 9:36:51 PMParent: a377872b433b83338c9d5ab303015a13401d1659
Files changed
interface.js | changed |
interface.js | ||
---|---|---|
@@ -331,9 +331,9 @@ | ||
331 | 331 | * @param {interger} pathOffest the memory offset to load the the path from |
332 | 332 | * @param {interger} valueOffset the memory offset to load the value from |
333 | 333 | */ |
334 | 334 | sstore (pathOffset, valueOffset) { |
335 | - const path = this.getMemory(pathOffset, 32).toString('hex') | |
335 | + const path = new Buffer(this.getMemory(pathOffset, 32)).toString('hex') | |
336 | 336 | const value = this.getMemory(valueOffset, 32) |
337 | 337 | const oldValue = this.environment.state.get(path) |
338 | 338 | const valIsZero = value.every((i) => i === 0) |
339 | 339 |
Built with git-ssb-web