Added new error for replaced transactions (#1477).

This commit is contained in:
Richard Moore 2021-04-26 12:06:37 -04:00
parent a9cdbe1238
commit 987bec87af
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -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 {