chore(server/v2/cometbft): improve code check (backport #21955) (#21975)

Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
mergify[bot]
2024-09-30 06:31:54 +00:00
committed by GitHub
co-authored by Julien Robert marbar3778
parent 0aa9fb4278
commit da48079989
3 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func TestBankSendTxCmd(t *testing.T) {
require.Len(t, gotOutputs, 1)
code := gjson.Get(gotOutputs[0].(string), "code")
require.True(t, code.Exists())
require.Equal(t, int64(sdkerrors.ErrUnauthorized.ABCICode()), code.Int())
require.Greater(t, code.Int(), int64(0))
return false
}
invalidCli := cli