-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement tx counter for transaction info #621
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ echo "## Add new CosmWasm contract" | |
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 block) | ||
|
||
CODE_ID=$(echo "$RESP" | jq -r '.logs[0].events[0].attributes[-1].value') | ||
CODE_ID=$(echo "$RESP" | jq -r '.logs[0].events[1].attributes[-1].value') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The ante handler added an event? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was a 🐛 that I found with manual tests. Not related to the ante handler. |
||
echo "* Code id: $CODE_ID" | ||
echo "* Download code" | ||
TMPDIR=$(mktemp -t wasmdXXXXXX) | ||
|
@@ -57,7 +57,7 @@ echo "### Upload new code" | |
RESP=$(wasmd tx wasm store "$DIR/../../x/wasm/keeper/testdata/burner.wasm" \ | ||
--from validator --gas 1000000 -y --chain-id=testing --node=http://localhost:26657 -b block) | ||
|
||
BURNER_CODE_ID=$(echo "$RESP" | jq -r '.logs[0].events[0].attributes[-1].value') | ||
BURNER_CODE_ID=$(echo "$RESP" | jq -r '.logs[0].events[1].attributes[-1].value') | ||
echo "### Migrate to code id: $BURNER_CODE_ID" | ||
|
||
DEST_ACCOUNT=$(wasmd keys show fred -a) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice