mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-29 20:31:04 +00:00
0cccd282a1
* Remove pre-charging for code size * Remove pre charging when reading values of fixed size * Add new versions of API functions that leave out parameters * Update CHANGELOG.md * Apply suggestions from code review Co-authored-by: Alexander Popiak <alexander.popiak@parity.io> * Add v1 for seal_set_rent_allowance * Remove unneeded trait bound Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Alexander Popiak <alexander.popiak@parity.io> Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
36 lines
959 B
WebAssembly Text Format
36 lines
959 B
WebAssembly Text Format
(module
|
|
(import "seal0" "seal_input" (func $seal_input (param i32 i32)))
|
|
(import "seal0" "seal_return" (func $seal_return (param i32 i32 i32)))
|
|
(import "env" "memory" (memory 1 1))
|
|
|
|
(func (export "deploy")
|
|
(call $ok_trap_revert)
|
|
)
|
|
|
|
(func (export "call")
|
|
(call $ok_trap_revert)
|
|
)
|
|
|
|
(func $ok_trap_revert
|
|
(i32.store (i32.const 4) (i32.const 4))
|
|
(call $seal_input (i32.const 0) (i32.const 4))
|
|
(block $IF_2
|
|
(block $IF_1
|
|
(block $IF_0
|
|
(br_table $IF_0 $IF_1 $IF_2
|
|
(i32.load8_u (i32.const 0))
|
|
)
|
|
(unreachable)
|
|
)
|
|
;; 0 = return with success
|
|
return
|
|
)
|
|
;; 1 = revert
|
|
(call $seal_return (i32.const 1) (i32.const 0) (i32.const 0))
|
|
(unreachable)
|
|
)
|
|
;; 2 = trap
|
|
(unreachable)
|
|
)
|
|
)
|