From 96e95c145517ff7a10f9e7bf48132634d8c01067 Mon Sep 17 00:00:00 2001 From: repo-worker-code Date: Mon, 2 Nov 2026 17:14:42 -0600 Subject: [PATCH] id(roc): add wasm-tools validate to roc-chat/roc-grid build.sh PR #1453 contract runs validate after strip in the example build scripts; roc-chat and roc-grid were left without it. Matches the other four examples (lounge, territory, roc-counter, roc-screen). Fixes #1538. --- pkgs/id/examples/roc-chat/build.sh | 1 + pkgs/id/examples/roc-grid/build.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/pkgs/id/examples/roc-chat/build.sh b/pkgs/id/examples/roc-chat/build.sh index 14f1e32177..54fb825e3e 100755 --- a/pkgs/id/examples/roc-chat/build.sh +++ b/pkgs/id/examples/roc-chat/build.sh @@ -39,4 +39,5 @@ $WASM_OPT -Os --all-features roc-chat.wasm -o roc-chat.wasm.opt mv roc-chat.wasm.opt roc-chat.wasm $WASM_TOOLS strip roc-chat.wasm -o roc-chat.wasm.stripped mv roc-chat.wasm.stripped roc-chat.wasm +"${WASM_TOOLS}" validate roc-chat.wasm echo "Built roc-chat.wasm (import-free Roc world module)" diff --git a/pkgs/id/examples/roc-grid/build.sh b/pkgs/id/examples/roc-grid/build.sh index 43dc7c451b..c7e17c0638 100755 --- a/pkgs/id/examples/roc-grid/build.sh +++ b/pkgs/id/examples/roc-grid/build.sh @@ -39,4 +39,5 @@ $WASM_OPT -Os --all-features roc-grid.wasm -o roc-grid.wasm.opt mv roc-grid.wasm.opt roc-grid.wasm $WASM_TOOLS strip roc-grid.wasm -o roc-grid.wasm.stripped mv roc-grid.wasm.stripped roc-grid.wasm +"${WASM_TOOLS}" validate roc-grid.wasm echo "Built roc-grid.wasm (import-free Roc world module)"