From dce610976a989a641263d2bb2b340fa7046503a4 Mon Sep 17 00:00:00 2001 From: MalteHerrmann Date: Mon, 28 Aug 2023 17:21:05 +0200 Subject: [PATCH] fix output --- keys.go | 2 +- utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keys.go b/keys.go index 2cd093d..ad2e70f 100644 --- a/keys.go +++ b/keys.go @@ -37,7 +37,7 @@ func stakingAccounts(accounts []Account) ([]Account, error) { var stakingAccs []Account for _, acc := range accounts { - out, err := executeShellCommand([]string{"query", "staking", "delegations", acc.Address, "--output=json"}, evmosdHome, "", false, true) + out, err := executeShellCommand([]string{"query", "staking", "delegations", acc.Address, "--output=json"}, evmosdHome, "", false, false) if err != nil { return nil, err } diff --git a/utils.go b/utils.go index e882471..5c8c057 100644 --- a/utils.go +++ b/utils.go @@ -69,7 +69,7 @@ func getTxEvents(out string) (txEvents []abcitypes.Event, err error) { var txOut string nAttempts := 10 for i := 0; i < nAttempts; i++ { - txOut, err = executeShellCommand([]string{"q", "tx", txHash, "--output=json"}, evmosdHome, "", false, false) + txOut, err = executeShellCommand([]string{"q", "tx", txHash, "--output=json"}, evmosdHome, "", false, true) if err == nil { break }