Skip to content

Commit 6024d24

Browse files
committed
HW CI: Try to fix wasm2wat & wat2wasm usage: Vol. 2
1 parent 889d4b0 commit 6024d24

File tree

1 file changed

+4
-4
lines changed
  • cosmwasm/contracts/v010/compute-tests/test-compute-contract

1 file changed

+4
-4
lines changed

cosmwasm/contracts/v010/compute-tests/test-compute-contract/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ contract_with_floats.wasm: $(Rust_Crate_Source)
1919
# Create a wasm with more than 192 memory pages (fails in init, handle & query, this is our limit)
2020
# https://github.com/scrtlabs/SecretNetwork/blob/9eef8591b2c04c586ceee12f424b92062598123e/cosmwasm/packages/wasmi-runtime/src/wasm/memory.rs#L39
2121
too-high-initial-memory.wasm: contract.wasm
22-
wasm2wat --enable-sign-extension ./contract.wasm | perl -pe 's/\(memory \(;0;\) \d+\)/(memory (;0;) 193)/' > /tmp/too-high-initial-memory.wat
23-
wat2wasm /tmp/too-high-initial-memory.wat -o ./too-high-initial-memory.wasm
22+
wasm2wat --enable-all ./contract.wasm | perl -pe 's/\(memory \(;0;\) \d+\)/(memory (;0;) 193)/' > /tmp/too-high-initial-memory.wat
23+
wat2wasm --enable-all /tmp/too-high-initial-memory.wat -o ./too-high-initial-memory.wasm
2424

2525
# Create a wasm with more than 512 memory pages (fails in store, this is cosmwasm's limit)
2626
# https://github.com/scrtlabs/SecretNetwork/blob/9eef8591b2c04c586ceee12f424b92062598123e/cosmwasm/packages/sgx-vm/src/compatability.rs#L36
2727
static-too-high-initial-memory.wasm: contract.wasm
28-
wasm2wat --enable-sign-extension ./contract.wasm | perl -pe 's/\(memory \(;0;\) \d+\)/(memory (;0;) 513)/' > /tmp/static-too-high-initial-memory.wat
29-
wat2wasm /tmp/static-too-high-initial-memory.wat -o ./static-too-high-initial-memory.wasm
28+
wasm2wat --enable-all ./contract.wasm | perl -pe 's/\(memory \(;0;\) \d+\)/(memory (;0;) 513)/' > /tmp/static-too-high-initial-memory.wat
29+
wat2wasm --enable-all /tmp/static-too-high-initial-memory.wat -o ./static-too-high-initial-memory.wasm
3030

3131
setup:
3232
apt-get install wabt

0 commit comments

Comments
 (0)