Files: 410bf961ea8b42dea73d52435bec504893649c03 / wasm / interface.wast
327 bytesRaw
1 | (module |
2 | (import $useGas "interface" "useGas" (param i32 i32)) |
3 | (func $useGasShim |
4 | (param $amount i64) |
5 | (call_import $useGas |
6 | (i32.wrap/i64 |
7 | (i64.shr_u (get_local $amount) (i64.const 32))) |
8 | (i32.wrap/i64 (get_local $amount))) |
9 | ) |
10 | (export "useGas" $useGasShim) |
11 | ) |
12 |
Built with git-ssb-web