From 7ad013c55542d506c7bee3a990ce12163455920c Mon Sep 17 00:00:00 2001 From: gluax <16431709+gluax@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:43:17 -0600 Subject: [PATCH] fix: wasm build --- .github/workflows/Basic.yml | 4 +--- xtask/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Basic.yml b/.github/workflows/Basic.yml index 0e866a3f..740a2e8c 100644 --- a/.github/workflows/Basic.yml +++ b/.github/workflows/Basic.yml @@ -43,9 +43,7 @@ jobs: run: git diff --exit-code schema - name: 🦾 Compile WASM contract - run: cargo wasm --locked - env: - RUSTFLAGS: "-C link-arg=-s" + run: cargo wasm fmt: diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 05073e03..33687793 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -53,7 +53,7 @@ fn print_help() -> Result<()> { fn wasm(sh: &Shell) -> Result<()> { cmd!( sh, - "cargo build --release --lib --target wasm32-unknown-unknown --locked" + "cargo build -p seda-contract --release --lib --target wasm32-unknown-unknown --locked" ) .env("RUSTFLAGS", "-C link-arg=-s") .run()?;