Skip to content

Commit

Permalink
Fix imports in the WAT template
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Feb 13, 2024
1 parent d321e12 commit d1602de
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cli/assets/templates/wat/main.wat
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,14 @@
;; │ │
;; └───────────────────────────────────────────────────────────────────────────┘
(; Reads up to `size` bytes from persistent storage into the pointer `dest`. ;)
(import "env" "diskr" (func $diskr (param i32 i32)))
(import "env" "diskr" (func $diskr (param i32 i32) (result i32)))

(; Writes up to `size` bytes from the pointer `src` into persistent storage. ;)
(import "env" "diskw" (func $diskw (param i32 i32)))
(import "env" "diskw" (func $diskw (param i32 i32) (result i32)))

(; Prints a message to the debug console. ;)
(import "env" "trace" (func $trace (param i32)))

(; Prints a message to the debug console. ;)
(import "env" "tracef" (func $tracef (param i32 i32)))


;; ┌───────────────────────────────────────────────────────────────────────────┐
;; │ │
Expand Down

0 comments on commit d1602de

Please sign in to comment.