Skip to content

Commit

Permalink
Added new error for replaced transactions (#1477).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 26, 2021
1 parent a9cdbe1 commit 987bec8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/logger/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ export enum ErrorCode {
// The gas limit could not be estimated
// - transaction: the transaction passed to estimateGas
UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT",

// The transaction was replaced by one with a higher gas price
// - reason: "cancelled", "replaced" or "repriced"
// - cancelled: true if reason == "cancelled" or reason == "replaced")
// - hash: original transaction hash
// - replacement: the full TransactionsResponse for the replacement
TRANSACTION_REPLACED = "TRANSACTION_REPLACED",
};

export class Logger {
Expand Down

0 comments on commit 987bec8

Please sign in to comment.