From 90e83972da172d03dd55be88df32a7124a75d646 Mon Sep 17 00:00:00 2001 From: egonspace Date: Wed, 14 Jul 2021 18:47:45 +0900 Subject: [PATCH] fix: send tx with unknown address with daemon command --- client/tx/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/tx/tx.go b/client/tx/tx.go index 4abf1032de..562983b0c5 100644 --- a/client/tx/tx.go +++ b/client/tx/tx.go @@ -326,7 +326,7 @@ func PrepareFactory(clientCtx client.Context, txf Factory) (Factory, error) { if initSeq == 0 && !clientCtx.Offline { seq, err := txf.accountRetriever.GetAccountSequence(clientCtx, from) if err != nil { - if sdkError, _ := err.(*sdkerrors.Error); sdkError != sdkerrors.ErrKeyNotFound { + if cliError, ok := err.(*client.Error); !ok || cliError.Code != sdkerrors.ErrKeyNotFound.ABCICode() { return txf, err } }