Skip to content

Commit

Permalink
bump versions, add additional post migration check (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-frey authored Aug 8, 2022
1 parent c762874 commit 94b812b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/deploy_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ then
fi

# pinched and adapted from DA0DA0
IMAGE_TAG=${2:-"v6.0.0"}
IMAGE_TAG=${2:-"v9.0.0"}
CONTAINER_NAME="juno_whoami"
BINARY="docker exec -i $CONTAINER_NAME junod"
DENOM='ujunox'
Expand Down
30 changes: 29 additions & 1 deletion scripts/test_migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ then
fi

# pinched and adapted from DA0DA0
IMAGE_TAG=${2:-"v6.0.0"}
IMAGE_TAG=${2:-"v9.0.0"}
CONTAINER_NAME="juno_whoami"
BINARY="docker exec -i $CONTAINER_NAME junod"
DENOM='ujunox'
Expand Down Expand Up @@ -149,6 +149,34 @@ NEW_CONTRACT_ADDRESS=$($BINARY q wasm list-contract-by-code $NEW_CONTRACT_CODE -
NFT_INFO=$($BINARY q wasm contract-state smart $NEW_CONTRACT_ADDRESS '{"all_nft_info": {"token_id": "nigeltufnel"}}' --output json)
echo $NFT_INFO | jq .

# init name 2
MINT2='{
"mint": {
"owner": "juno16g2rahf5846rxzp3fwlswy08fz8ccuwk03k57y",
"token_id": "jeffvader",
"token_uri": null,
"extension": {
"image": null,
"image_data": null,
"email": null,
"external_url": null,
"public_name": "Jeff Vader",
"public_bio": "Jeff Vader runs the Death Star",
"twitter_id": null,
"discord_id": null,
"telegram_id": null,
"keybase_id": null,
"validator_operator_address": ""
}
}
}'

$BINARY tx wasm execute "$CONTRACT_ADDRESS" "$MINT2" --from test-user $TXFLAG --amount 1000000ujunox

# should have new fields in it
NFT_INFO=$($BINARY q wasm contract-state smart $NEW_CONTRACT_ADDRESS '{"all_nft_info": {"token_id": "jeffvader"}}' --output json)
echo $NFT_INFO | jq .

# Print out config variables
printf "\n ------------------------ \n"
printf "Config Variables \n\n"
Expand Down

0 comments on commit 94b812b

Please sign in to comment.