Skip to content

Commit

Permalink
chore(readme): adapt address gathering for evmos chain (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
redref authored Nov 21, 2023
1 parent a89b3bc commit 9928a17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ This app is using the [CometBFT library](https://github.com/cometbft/cometbft/)
Use `tendermint show-validator` to get the pubkey and `debug pubkey` to convert to hex format.

```bash
gaiad debug pubkey "$(gaiad tendermint show-validator)" 2>&1 | grep "Address:" | awk '{print $2}'
CLI_NAME=gaiad
ADDRESS="$($CLI_NAME debug pubkey "$($CLI_NAME tendermint show-validator)" 2>&1 | grep "Address")"
ADDRESS="${ADDRESS##* 0x}"
ADDRESS="${ADDRESS##* }"
echo "${ADDRESS^^}"
```

(replace `gaiad` by the binary name or the desired chain, eg. `evmosd`, `strided`, `injectived`, …).
Expand Down

0 comments on commit 9928a17

Please sign in to comment.