diff --git a/scripts/optimize-cosmwasm.sh b/scripts/optimize-cosmwasm.sh index 769704fa..421eb303 100755 --- a/scripts/optimize-cosmwasm.sh +++ b/scripts/optimize-cosmwasm.sh @@ -36,7 +36,7 @@ rustup target add wasm32-unknown-unknown cargo install cosmwasm-check@2.1.1 --locked -RUSTFLAGS='-C link-arg=-s' cargo build --workspace --exclude test-utils --release --lib --target wasm32-unknown-unknown +RUSTFLAGS='-C link-arg=-s' cargo build --workspace --exclude contracts/soroban/contracts --exclude contracts/soroban/libs --exclude test-utils --release --lib --target wasm32-unknown-unknown for WASM in ./target/wasm32-unknown-unknown/release/*.wasm; do NAME=$(basename "$WASM" .wasm)${SUFFIX}.wasm echo "Creating intermediate hash for $NAME ..." @@ -90,4 +90,4 @@ exit 1 fi echo "$file : $size KB" done -echo "The size of all contracts is well within the $MAX_WASM_SIZE KB limit." \ No newline at end of file +echo "The size of all contracts is well within the $MAX_WASM_SIZE KB limit."