Skip to content

Commit

Permalink
fix: send tx with unknown address with daemon command (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
Woosang Son authored Jul 15, 2021
1 parent c1c71f1 commit 7ecb96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/tx/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 7ecb96e

Please sign in to comment.