Skip to content

Commit

Permalink
Add nonce error log (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllFi authored Aug 30, 2024
1 parent 2c8842c commit db95af3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zp-relayer/lib/network/evm/EvmTxManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,11 @@ export class EvmTxManager implements TransactionManager<ExtraInfo> {
// const minimumBalance = toBN(txConfig.gas!).mul(toBN(getMaxRequiredGasPrice(gasPrice)))
// jobLogger.error('Insufficient balance, waiting for funds', { minimumBalance: minimumBalance.toString(10) })
} else if (isNonceError(err)) {
logger.warn('Nonce error', { error: err.message, nonce: preparedTx[1].extraData.nonce })
return {
attempt: preparedTx[1],
error: SendError.NONCE_ERROR,
}
// jobLogger.warn('Nonce error', { error: err.message, txHash })
// // Throw suppressed error to be treated as a warning
// throw new Error(RECHECK_ERROR)
}
}

Expand Down

0 comments on commit db95af3

Please sign in to comment.