Skip to content

Commit

Permalink
Fix failing test + fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pinosu committed Apr 22, 2024
1 parent 5a364be commit bcf4388
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions scripts/contrib/local/02-contracts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"

echo "-----------------------"
echo "## Add new CosmWasm contract"
RESP=$(wasmd tx wasm store "$DIR/../../x/wasm/keeper/testdata/hackatom.wasm" \
RESP=$(wasmd tx wasm store "$DIR/../../../x/wasm/keeper/testdata/hackatom.wasm" \
--from validator --gas 1500000 -y --chain-id=testing --node=http://localhost:26657 -b sync -o json --keyring-backend=test)
sleep 6
RESP=$(wasmd q tx $(echo "$RESP"| jq -r '.txhash') -o json)
Expand Down Expand Up @@ -44,8 +44,8 @@ sleep 6
wasmd q tx $(echo "$RESP"| jq -r '.txhash') -o json | jq


predictedAdress=$(wasmd q wasm build-address "$CODE_HASH" $(wasmd keys show validator -a --keyring-backend=test) $(echo -n "testing" | xxd -ps) "$INIT")
wasmd q wasm contract "$predictedAdress" -o json | jq
predictedAddress=$(wasmd q wasm build-address "$CODE_HASH" $(wasmd keys show validator -a --keyring-backend=test) $(echo -n "testing" | xxd -ps) "$INIT" | awk '{print $2}')
wasmd q wasm contract "$predictedAddress" -o json | jq

echo "### Query all"
RESP=$(wasmd query wasm contract-state all "$CONTRACT" -o json)
Expand Down Expand Up @@ -80,7 +80,7 @@ echo "### Query new admin: $(wasmd q wasm contract "$CONTRACT" -o json | jq -r '
echo "-----------------------"
echo "## Migrate contract"
echo "### Upload new code"
RESP=$(wasmd tx wasm store "$DIR/../../x/wasm/keeper/testdata/burner.wasm" \
RESP=$(wasmd tx wasm store "$DIR/../../../x/wasm/keeper/testdata/burner.wasm" \
--from validator --gas 1100000 -y --chain-id=testing --node=http://localhost:26657 -b sync -o json --keyring-backend=test)
sleep 6
RESP=$(wasmd q tx $(echo "$RESP"| jq -r '.txhash') -o json)
Expand Down
2 changes: 1 addition & 1 deletion scripts/contrib/local/04-gov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"

sleep 1
echo "## Submit a CosmWasm gov proposal"
RESP=$(wasmd tx wasm submit-proposal store-instantiate "$DIR/../../x/wasm/keeper/testdata/reflect.wasm" \
RESP=$(wasmd tx wasm submit-proposal store-instantiate "$DIR/../../../x/wasm/keeper/testdata/reflect_2_0.wasm" \
'{}' --label="testing" \
--title "testing" --summary "Testing" --deposit "1000000000ustake" \
--admin $(wasmd keys show -a validator --keyring-backend=test) \
Expand Down
2 changes: 1 addition & 1 deletion x/wasm/types/iavl_range_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package types
import (
"testing"

dbm "github.com/cosmos/cosmos-db"
iavl2 "github.com/cosmos/iavl"
dbm "github.com/cosmos/iavl/db"
"github.com/stretchr/testify/require"

"cosmossdk.io/log"
Expand Down

0 comments on commit bcf4388

Please sign in to comment.