Skip to content

Commit

Permalink
fix: return err not nil
Browse files Browse the repository at this point in the history
  • Loading branch information
izyak committed Apr 4, 2024
1 parent fb97ad5 commit f2fcc0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relayer/chains/wasm/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ func (ap *WasmProvider) SendMessagesToMempool(
if err := ap.BroadcastTx(cliCtx, txBytes, []provider.RelayerMessage{msg}, asyncCtx, defaultBroadcastWaitTimeout, asyncCallback, false); err != nil {
if strings.Contains(err.Error(), sdkerrors.ErrWrongSequence.Error()) {
ap.handleAccountSequenceMismatchError(err)
return nil
return err
}
}
ap.updateNextAccountSequence(sequence + 1)
Expand Down

0 comments on commit f2fcc0c

Please sign in to comment.