From eae67df61f87cfa5260b0bfd5db427c99c46416a Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Wed, 25 May 2022 15:50:00 +0200 Subject: [PATCH] doc: add dev part "verify runtime code" --- docs/dev/verify-runtime-code.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/dev/verify-runtime-code.md diff --git a/docs/dev/verify-runtime-code.md b/docs/dev/verify-runtime-code.md new file mode 100644 index 000000000..3464bfef2 --- /dev/null +++ b/docs/dev/verify-runtime-code.md @@ -0,0 +1,17 @@ +# Compile the runtime with srtool + +```docker +docker run \ + -i \ + --rm \ + -e PACKAGE=gdev-runtime \ + -e RUNTIME_DIR=runtime/gdev \ + -v $PWD:/build \ + paritytech/srtool:1.60.0 build --app --json -cM +``` + +Then, the runtime wasm bytecode is generated in this location: + +``` +runtime/gdev/target/srtool/release/wbuild/gdev-runtime/gdev_runtime.compact.compressed.wasm +``` -- GitLab