mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 08:58:01 +00:00
1ac95b6ba6
* Move `Schedule` from Storage to Config * Updated CHANGELOG * Fix nits from review * Fix migration * Print the debug buffer as tracing message * Use `debug` instead of `trace` and update README * Add additional assert to test * Rename `schedule_version` to `instruction_weights_version` * Fixed typo * Added more comments to wat fixtures * Add clarification for the `debug_message` field
19 lines
461 B
WebAssembly Text Format
19 lines
461 B
WebAssembly Text Format
;; Emit a "Hello World!" debug message
|
|
(module
|
|
(import "seal0" "seal_debug_message" (func $seal_debug_message (param i32 i32) (result i32)))
|
|
(import "env" "memory" (memory 1 1))
|
|
|
|
(data (i32.const 0) "\fc")
|
|
|
|
(func (export "call")
|
|
(call $seal_debug_message
|
|
(i32.const 0) ;; Pointer to the text buffer
|
|
(i32.const 12) ;; The size of the buffer
|
|
)
|
|
;; the above call traps because we supplied invalid utf8
|
|
unreachable
|
|
)
|
|
|
|
(func (export "deploy"))
|
|
)
|