git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 15d2c0fc81dcbb3582ba95664973cd4a97055b02

changed sstore to use keys as hex strings

wanderer committed on 8/4/2016, 9:36:51 PM
Parent: a377872b433b83338c9d5ab303015a13401d1659

Files changed

interface.jschanged
interface.jsView
@@ -331,9 +331,9 @@
331331 * @param {interger} pathOffest the memory offset to load the the path from
332332 * @param {interger} valueOffset the memory offset to load the value from
333333 */
334334 sstore (pathOffset, valueOffset) {
335- const path = this.getMemory(pathOffset, 32).toString('hex')
335+ const path = new Buffer(this.getMemory(pathOffset, 32)).toString('hex')
336336 const value = this.getMemory(valueOffset, 32)
337337 const oldValue = this.environment.state.get(path)
338338 const valIsZero = value.every((i) => i === 0)
339339

Built with git-ssb-web