-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/cmd: keys eth list: print Unknown/None instead of <nil> (#11724)
Co-authored-by: Vyzaldy Sanchez <[email protected]>
- Loading branch information
1 parent
2a20248
commit 1567a11
Showing
5 changed files
with
78 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
exec chainlink keys eth create --help | ||
cmp stdout out.txt | ||
|
||
-- out.txt -- | ||
NAME: | ||
chainlink keys eth create - Create a key in the node's keystore alongside the existing key; to create an original key, just run the node | ||
|
||
USAGE: | ||
chainlink keys eth create [command options] [arguments...] | ||
|
||
OPTIONS: | ||
--evm-chain-id value, --evmChainID value Chain ID for the key. If left blank, default chain will be used. | ||
--max-gas-price-gwei value, --maxGasPriceGWei value Optional maximum gas price (GWei) for the creating key. (default: 0) | ||
|
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,9 @@ | ||
exec chainlink keys eth list --help | ||
cmp stdout out.txt | ||
|
||
-- out.txt -- | ||
NAME: | ||
chainlink keys eth list - List available Ethereum accounts with their ETH & LINK balances and other metadata | ||
|
||
USAGE: | ||
chainlink keys eth list [arguments...] |
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,38 @@ | ||
# start node | ||
exec sh -c 'eval "echo \"$(cat config.toml.tmpl)\" > config.toml"' | ||
exec chainlink node -c config.toml start -p password -a creds & | ||
|
||
# initialize client | ||
env NODEURL=http://localhost:$PORT | ||
exec curl --retry 10 --retry-max-time 60 --retry-connrefused $NODEURL | ||
exec chainlink --remote-node-url $NODEURL admin login -file creds --bypass-version-check | ||
|
||
exec chainlink --remote-node-url $NODEURL keys eth list | ||
! stdout 'ETH: <nil>' | ||
! stdout 'LINK: <nil>' | ||
! stdout '<nil>' | ||
stdout 'ETH: Unknown' | ||
stdout 'LINK: Unknown' | ||
|
||
-- testdb.txt -- | ||
CL_DATABASE_URL | ||
-- testport.txt -- | ||
PORT | ||
|
||
-- password -- | ||
T.tLHkcmwePT/p,]sYuntjwHKAsrhm#4eRs4LuKHwvHejWYAC2JP4M8HimwgmbaZ | ||
-- creds -- | ||
[email protected] | ||
fj293fbBnlQ!f9vNs | ||
|
||
-- config.toml.tmpl -- | ||
[Webserver] | ||
HTTPPort = $PORT | ||
|
||
[[EVM]] | ||
ChainID = '99' | ||
|
||
[[EVM.Nodes]] | ||
Name = 'fake' | ||
WSURL = 'wss://foo.bar/ws' | ||
HTTPURL = 'https://foo.bar' |