git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 7ac6686f9ca7efa10273c565fc2e749c25a4604e

Files: 7ac6686f9ca7efa10273c565fc2e749c25a4604e / tests / interface / sstore.wast

782 bytesRaw
1;; starts with an caller of 5d48c1018904a172886829bbbd9c6f4a2d06c47b
2(module
3 (memory 1)
4 (import $sstore "ethereum" "storageStore" (param i32 i32 i32))
5 (import $sload "ethereum" "storageLoad" (param i32 i32 i32))
6
7 (export "main" 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) (i32.const 1))
15 )
16 )
17
18 (export "1" 1)
19 (func
20 (block
21 (call_import $sload (i32.const 64) (i32.const 64) (i32.const 2))
22 )
23 )
24
25 (export "2" 2)
26 (func
27 (block
28 (if (i64.ne (i64.load (i32.const 64)) (i64.const 173553719826446289))
29 (unreachable))
30
31 )
32 )
33)
34

Built with git-ssb-web