Skip to content

Commit

Permalink
Merge pull request #694 from orsinium-forks/fix-wat-template
Browse files Browse the repository at this point in the history
Fix imports in the WAT template
  • Loading branch information
aduros authored Feb 20, 2024
2 parents d321e12 + d1602de commit 9e52fd0
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 9e52fd0

Please sign in to comment.