git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 0edfe5b10a3a58691d782ae18e443689a66cf95d

sget => sload

wanderer committed on 7/15/2016, 1:24:47 AM
Parent: f8c9ead18a27b0962868bf70b4fa256cb3fb1606

Files changed

interface.jschanged
tests/sstore.wastchanged
interface.jsView
@@ -332,9 +332,9 @@
332332 * reterives a value at a given path in long term storage
333333 * @param {interger} pathOffest the memory offset to load the the path from
334334 * @param {interger} resultOffset the memory offset to load the value from
335335 */
336- sget (pathOffest, resultOffset) {
336+ sload (pathOffest, resultOffset) {
337337 const path = new Uint8Array(MOD.exports.memory, pathOffest, pathOffest + 32)
338338 const result = ENV.state.getValue(path)
339339 const memory = new Uint8Array(MOD.exports.memory, resultOffset, resultOffset + 32)
340340 memory.set(result)
tests/sstore.wastView
@@ -1,9 +1,9 @@
11 ;; starts with an caller of 5d48c1018904a172886829bbbd9c6f4a2d06c47b
22 (module
33 (memory 1)
44 (import $sstore "ethereum" "sstore" (param i32 i32))
5- (import $sget "ethereum" "sget" (param i32 i32))
5+ (import $sload "ethereum" "sload" (param i32 i32))
66
77 (export "test" 0)
88 (export "a" memory)
99 (func
@@ -11,9 +11,9 @@
1111 (block
1212 ;; should roundtrip store and load a value from storage
1313 (i64.store (i32.const 0) (i64.const 173553719826446289))
1414 (call_import $sstore (i32.const 64) (i32.const 0))
15- (call_import $sget (i32.const 64) (i32.const 64))
15+ (call_import $sload (i32.const 64) (i32.const 64))
1616 (set_local $temp
1717 (i64.load (i32.const 64)))
1818
1919 (if (i64.eq (i64.load (i32.const 0)) (i64.const 173553719826446289))

Built with git-ssb-web