From d13af64fd972206871bf33b2502729f154b17d5b Mon Sep 17 00:00:00 2001 From: Luke Schoen Date: Sun, 15 Dec 2024 14:02:45 +1100 Subject: [PATCH] fix: Fix wasm-opt to prevent error --- packages/secret-contracts/my-counter-contract/Makefile | 2 +- packages/secret-contracts/nunya-contract/Makefile | 2 +- packages/secret-contracts/secret-gateway/Makefile | 2 +- .../secret-gateway/tests/example-private-contract/Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/secret-contracts/my-counter-contract/Makefile b/packages/secret-contracts/my-counter-contract/Makefile index 8f9cdaa..082018c 100644 --- a/packages/secret-contracts/my-counter-contract/Makefile +++ b/packages/secret-contracts/my-counter-contract/Makefile @@ -44,7 +44,7 @@ _build-mainnet-reproducible: compress-wasm: cp ./target/wasm32-unknown-unknown/release/*.wasm ./contract.wasm @## The following line is not necessary, may work only on linux (extra size optimization) - @# wasm-opt -Os ./contract.wasm -o ./contract.wasm + @# wasm-opt -Os ./contract.wasm -o ./contract.wasm --enable-threads --enable-bulk-memory --all-features cat ./contract.wasm | gzip -9 > ./contract.wasm.gz .PHONY: schema diff --git a/packages/secret-contracts/nunya-contract/Makefile b/packages/secret-contracts/nunya-contract/Makefile index 8834559..ecd8f40 100644 --- a/packages/secret-contracts/nunya-contract/Makefile +++ b/packages/secret-contracts/nunya-contract/Makefile @@ -49,7 +49,7 @@ _build-mainnet-reproducible: compress-wasm: cp ./target/wasm32-unknown-unknown/release/*.wasm ./contract.wasm @## The following line is not necessary, may work only on linux (extra size optimization) - @# wasm-opt -Os ./contract.wasm -o ./contract.wasm + @# wasm-opt -Os ./contract.wasm -o ./contract.wasm --enable-threads --enable-bulk-memory --all-features cat ./contract.wasm | gzip -9 > ./contract.wasm.gz .PHONY: schema diff --git a/packages/secret-contracts/secret-gateway/Makefile b/packages/secret-contracts/secret-gateway/Makefile index 2118bc1..98e099a 100644 --- a/packages/secret-contracts/secret-gateway/Makefile +++ b/packages/secret-contracts/secret-gateway/Makefile @@ -40,7 +40,7 @@ build-mainnet-reproducible: compress-wasm: cp ./target/wasm32-unknown-unknown/release/*.wasm ./secret-gateway-contract.wasm @## The following line is not necessary, may work only on linux (extra size optimization) - wasm-opt -Os ./secret-gateway-contract.wasm -o ./secret-gateway-contract.wasm + wasm-opt -Os ./secret-gateway-contract.wasm -o ./secret-gateway-contract.wasm --enable-threads --enable-bulk-memory --all-features cat ./secret-gateway-contract.wasm | gzip -9 > ./secret-gateway-contract.wasm.gz .PHONY: schema diff --git a/packages/secret-contracts/secret-gateway/tests/example-private-contract/Makefile b/packages/secret-contracts/secret-gateway/tests/example-private-contract/Makefile index cd7188e..6b8ab70 100644 --- a/packages/secret-contracts/secret-gateway/tests/example-private-contract/Makefile +++ b/packages/secret-contracts/secret-gateway/tests/example-private-contract/Makefile @@ -40,7 +40,7 @@ build-mainnet-reproducible: compress-wasm: cp ./target/wasm32-unknown-unknown/release/*.wasm ./contract.wasm @## The following line is not necessary, may work only on linux (extra size optimization) - wasm-opt -Os ./contract.wasm -o ./contract.wasm + wasm-opt -Os ./contract.wasm -o ./contract.wasm --enable-threads --enable-bulk-memory --all-features cat ./contract.wasm | gzip -9 > ./contract.wasm.gz .PHONY: schema