git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 8ced6c46cc8f744d128a65d00c117a79e68918b8

Files: 8ced6c46cc8f744d128a65d00c117a79e68918b8 / tests / interface / sstore.wast

878 bytesRaw
1;; starts with an caller of 5d48c1018904a172886829bbbd9c6f4a2d06c47b
2(module
3 (import "ethereum" "storageStore" (func $sstore (param i32 i32 i32)))
4 (import "ethereum" "storageLoad" (func $sload (param i32 i32 i32)))
5
6 (memory 1)
7 (export "memory" (memory 0))
8
9 (table
10 (export "callback")
11 anyfunc
12 (elem
13 $callback
14 $callback2
15 )
16 )
17
18 (func $main
19 (export "main")
20 (local $temp i64)
21 (block
22 ;; should roundtrip store and load a value from storage
23 (i64.store (i32.const 0) (i64.const 173553719826446289))
24 (call $sstore (i32.const 64) (i32.const 0) (i32.const 0))
25 )
26 )
27
28 (func $callback
29 (block
30 (call $sload (i32.const 64) (i32.const 64) (i32.const 1))
31 )
32 )
33
34 (func $callback2
35 (block
36 (if (i64.ne (i64.load (i32.const 64)) (i64.const 173553719826446289))
37 (unreachable))
38
39 )
40 )
41)
42

Built with git-ssb-web