-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gnoweb): update "airgapped" commands in realm help page (#2244)
This matches `gnokey sign`'s behaviour to the updated version from #1976. I've manually tested this on a local node, and it works.
- Loading branch information
Showing
9 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This test ensures that the "full security with airgap" commands, on gnoweb's | ||
# help page, work as intended. | ||
|
||
# load the package from $WORK directory | ||
loadpkg gno.land/r/demo/echo | ||
|
||
# start the node | ||
gnoland start | ||
|
||
# Query account | ||
gnokey query auth/accounts/$USER_ADDR_test1 | ||
cmp stdout query.stdout.golden | ||
|
||
# Create transaction | ||
gnokey maketx call -pkgpath "gno.land/r/demo/echo" -func "Render" -gas-fee 1000000ugnot -gas-wanted 2000000 -send "" -args "HELLO" test1 | ||
cp stdout call.tx | ||
|
||
# Sign | ||
gnokey sign -tx-path $WORK/call.tx -chainid "tendermint_test" -account-number 0 -account-sequence 0 test1 | ||
cmpenv stdout sign.stdout.golden | ||
|
||
gnokey broadcast $WORK/call.tx | ||
stdout '("HELLO" string)' | ||
stdout 'GAS WANTED: 2000000' | ||
|
||
-- query.stdout.golden -- | ||
height: 0 | ||
data: { | ||
"BaseAccount": { | ||
"address": "g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5", | ||
"coins": "9999999000000ugnot", | ||
"public_key": null, | ||
"account_number": "0", | ||
"sequence": "0" | ||
} | ||
} | ||
-- sign.stdout.golden -- | ||
|
||
Tx successfully signed and saved to $WORK/call.tx |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters