git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: f8c9ead18a27b0962868bf70b4fa256cb3fb1606

Files: f8c9ead18a27b0962868bf70b4fa256cb3fb1606 / tests / sstore.wast

710 bytesRaw
1;; starts with an caller of 5d48c1018904a172886829bbbd9c6f4a2d06c47b
2(module
3 (memory 1)
4 (import $sstore "ethereum" "sstore" (param i32 i32))
5 (import $sget "ethereum" "sget" (param i32 i32))
6
7 (export "test" 0)
8 (export "a" memory)
9 (func
10 (local $temp i64)
11 (block
12 ;; should roundtrip store and load a value from storage
13 (i64.store (i32.const 0) (i64.const 173553719826446289))
14 (call_import $sstore (i32.const 64) (i32.const 0))
15 (call_import $sget (i32.const 64) (i32.const 64))
16 (set_local $temp
17 (i64.load (i32.const 64)))
18
19 (if (i64.eq (i64.load (i32.const 0)) (i64.const 173553719826446289))
20 (return))
21 (unreachable)
22 )
23 )
24)
25

Built with git-ssb-web