Skip to content

Commit

Permalink
fix(zetaclient): ensure fallbackTx is not nil
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Mar 4, 2025
1 parent 5041002 commit 37c8ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zetaclient/chains/solana/signer/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func (signer *Signer) broadcastOutbound(
if err != nil {
// in case it is not failure due to nonce mismatch, replace tx with fallback tx
// probably need a better way to do this, but currently this is the only error to tolerate like this
if !strings.Contains(err.Error(), "NonceMismatch") {
if !strings.Contains(err.Error(), "NonceMismatch") && fallbackTx != nil {

Check warning on line 304 in zetaclient/chains/solana/signer/signer.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/solana/signer/signer.go#L304

Added line #L304 was not covered by tests
tx = fallbackTx
}
logger.Warn().Err(err).Fields(lf).Msgf("SendTransactionWithOpts failed")
Expand Down

0 comments on commit 37c8ea5

Please sign in to comment.