From 7d90017916a375bea54e65c86324b14cc5e31129 Mon Sep 17 00:00:00 2001 From: Anthony BESCOND Date: Tue, 21 Nov 2023 09:41:50 +0100 Subject: [PATCH] fix: adapt address gathering for evmos chain --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index af95c58..46199da 100644 --- a/README.md +++ b/README.md @@ -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`, …).