From f376c37bb2d43f715d096e30fcc1b1b42e9d9ed7 Mon Sep 17 00:00:00 2001 From: Sam Batschelet Date: Fri, 20 Oct 2023 12:29:36 -0400 Subject: [PATCH] Update script to use DEBUG param Signed-off-by: Sam Batschelet --- x/programs/rust/README.md | 4 ++-- x/programs/rust/scripts/build.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x/programs/rust/README.md b/x/programs/rust/README.md index 70fa6ea978..a358de1a61 100644 --- a/x/programs/rust/README.md +++ b/x/programs/rust/README.md @@ -26,10 +26,10 @@ support. This allows, for example, logging from your program. The compiled set `WithEnableTestingOnlyMode` for the runtime `Config`. **NOTE**: Once testing is complete, don't forget to remove all print statements -from your program and recompile without `TESTING_ONLY`. +from your program and recompile without `DEBUG`. ```sh -TESTING_ONLY=1 ./scripts/build.sh +DEBUG=1 ./scripts/build.sh ``` ## Storage diff --git a/x/programs/rust/scripts/build.sh b/x/programs/rust/scripts/build.sh index 9674be9e75..3fba45556f 100755 --- a/x/programs/rust/scripts/build.sh +++ b/x/programs/rust/scripts/build.sh @@ -1,13 +1,13 @@ #!/usr/bin/env bash # -# $ TESTING_ONLY=1 ./scripts/build.sh . +# $ DEBUG=1 ./scripts/build.sh . # -# If TESTING_ONLY=1 is passed we compile the program with wasi support for +# If DEBUG=1 is passed we compile the program with wasi support for # easier debugging. set -x target="wasm32-unknown-unknown" -if [ -n "${TESTING_ONLY:-}" ]; then +if [ -n "${DEBUG:-}" ]; then target="wasm32-wasi" fi