From d1602decc12bf8a61060583cb5950aeb6920002e Mon Sep 17 00:00:00 2001 From: gram Date: Tue, 13 Feb 2024 07:32:43 +0100 Subject: [PATCH] Fix imports in the WAT template --- cli/assets/templates/wat/main.wat | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cli/assets/templates/wat/main.wat b/cli/assets/templates/wat/main.wat index 3fb55b5b..59ef7eab 100644 --- a/cli/assets/templates/wat/main.wat +++ b/cli/assets/templates/wat/main.wat @@ -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))) - ;; ┌───────────────────────────────────────────────────────────────────────────┐ ;; │ │