We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ff3d38 commit 8e1d348Copy full SHA for 8e1d348
zetaclient/chains/solana/signer/signer.go
@@ -317,7 +317,9 @@ func (signer *Signer) broadcastOutbound(
317
if err != nil {
318
// in case it is not failure due to nonce mismatch, replace tx with fallback tx
319
// probably need a better way to do this, but currently this is the only error to tolerate like this
320
- if !strings.Contains(err.Error(), "NonceMismatch") {
+ errStr := err.Error()
321
+ if strings.Contains(errStr, "Error processing Instruction") && !strings.Contains(errStr, "NonceMismatch") &&
322
+ fallbackTx != nil {
323
tx = fallbackTx
324
}
325
logger.Warn().Err(err).Fields(lf).Msgf("SendTransactionWithOpts failed")
0 commit comments