Skip to content

Commit

Permalink
Add signext-lowering comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Jul 28, 2023
1 parent ed0ef8a commit bc393ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions optimize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ for CONTRACTDIR in "$@"; do
echo "Creating intermediate hash for $NAME ..."
sha256sum -- "$WASM" | tee -a artifacts/checksums_intermediate.txt
echo "Optimizing $NAME ..."
# --signext-lowering is needed to support blockchains runnning CosmWasm < 1.3. It can be removed eventually
wasm-opt -Os --signext-lowering "$WASM" -o "artifacts/$NAME"
done
done
Expand Down
1 change: 1 addition & 0 deletions optimize_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ TMPARTIFACTS=$(mktemp -p "$(pwd)" -d artifacts.XXXXXX)
echo "$INTERMEDIATE_SHA" >>"$INTERMEDIATE_SHAS"

echo "Optimizing ${BASENAME}..."
# --signext-lowering is needed to support blockchains runnning CosmWasm < 1.3. It can be removed eventually
wasm-opt -Os --signext-lowering "$WASM" -o "$OPTIMIZED_WASM"
echo "Moving ${OPTIMIZED_WASM}..."
mv "$OPTIMIZED_WASM" ../artifacts
Expand Down

0 comments on commit bc393ba

Please sign in to comment.