mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 17:28:00 +00:00
0057c0b53f
* Move public functions up in rent.rs * Added RentStatus * Fix test name for consistency Co-authored-by: Michael Müller <michi@parity.io> * Mark rent functions as unstable * Add unstable interfaces to README * Fix doc typos Co-authored-by: Andrew Jones <ascjones@gmail.com> * Use DefaultNoBound * Simplify calc_share(1) * Don't output empty debug messages * Make `seal_debug_message` unstable Co-authored-by: Michael Müller <michi@parity.io> Co-authored-by: Andrew Jones <ascjones@gmail.com>
29 lines
648 B
WebAssembly Text Format
29 lines
648 B
WebAssembly Text Format
;; Emit a "Hello World!" debug message but assume that logging is disabled.
|
|
(module
|
|
(import "__unstable__" "seal_debug_message" (func $seal_debug_message (param i32 i32) (result i32)))
|
|
(import "env" "memory" (memory 1 1))
|
|
|
|
(data (i32.const 0) "Hello World!")
|
|
|
|
(func $assert_eq (param i32 i32)
|
|
(block $ok
|
|
(br_if $ok
|
|
(i32.eq (get_local 0) (get_local 1))
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
|
|
(func (export "call")
|
|
(call $assert_eq
|
|
(call $seal_debug_message
|
|
(i32.const 0) ;; Pointer to the text buffer
|
|
(i32.const 12) ;; The size of the buffer
|
|
)
|
|
(i32.const 9) ;; LoggingDisabled return code
|
|
)
|
|
)
|
|
|
|
(func (export "deploy"))
|
|
)
|