diff --git a/scripts/deploy_ci.sh b/scripts/deploy_ci.sh index 3e1261f..97e38d3 100755 --- a/scripts/deploy_ci.sh +++ b/scripts/deploy_ci.sh @@ -37,7 +37,7 @@ echo "TX Flags: $TXFLAG" # upload whoami wasm # CONTRACT_RES=$($BINARY tx wasm store "/whoami.wasm" --from validator $TXFLAG --output json) # echo $CONTRACT_RES -CONTRACT_CODE=$($BINARY tx wasm store "/whoami.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[0].value') +CONTRACT_CODE=$($BINARY tx wasm store "/whoami.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[-1].value') echo "Stored: $CONTRACT_CODE" BALANCE_2=$($BINARY q bank balances $VALIDATOR_ADDR) diff --git a/scripts/deploy_local.sh b/scripts/deploy_local.sh index 31bfaa2..0171032 100755 --- a/scripts/deploy_local.sh +++ b/scripts/deploy_local.sh @@ -7,14 +7,14 @@ then fi # pinched and adapted from DA0DA0 -IMAGE_TAG=${2:-"v9.0.0"} +IMAGE_TAG=${2:-"wasmd_029_rc1"} CONTAINER_NAME="juno_whoami" BINARY="docker exec -i $CONTAINER_NAME junod" DENOM='ujunox' CHAIN_ID='testing' RPC='http://localhost:26657/' TXFLAG="--gas-prices 0.1$DENOM --gas auto --gas-adjustment 1.3 -y -b block --chain-id $CHAIN_ID --node $RPC" -BLOCK_GAS_LIMIT=${GAS_LIMIT:-100000000} # should mirror mainnet +BLOCK_GAS_LIMIT=${GAS_LIMIT:-10000000} # should mirror mainnet echo "Building $IMAGE_TAG" echo "Configured Block Gas Limit: $BLOCK_GAS_LIMIT" @@ -37,7 +37,7 @@ docker run --rm -d --name $CONTAINER_NAME \ docker run --rm -v "$(pwd)":/code \ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ - cosmwasm/rust-optimizer:0.12.5 + cosmwasm/rust-optimizer:0.12.8 # copy wasm to docker container docker cp artifacts/whoami.wasm $CONTAINER_NAME:/whoami.wasm @@ -59,7 +59,7 @@ echo "TX Flags: $TXFLAG" # upload whoami wasm # CONTRACT_RES=$($BINARY tx wasm store "/whoami.wasm" --from validator $TXFLAG --output json) # echo $CONTRACT_RES -CONTRACT_CODE=$($BINARY tx wasm store "/whoami.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[0].value') +CONTRACT_CODE=$($BINARY tx wasm store "/whoami.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[-1].value') echo "Stored: $CONTRACT_CODE" BALANCE_2=$($BINARY q bank balances $VALIDATOR_ADDR)