From e8d8d04c52f7ffe3e243fee726255adaaf98d38c Mon Sep 17 00:00:00 2001 From: Alexandre Sobolevski Date: Mon, 29 Nov 2021 07:30:27 -0500 Subject: [PATCH] Updates Transaction and TransactionConfig types (#4232) * Updates Transaction and TransactionConfig types * Updates CHANGELOG.md Co-authored-by: jdevcs <86780488+jdevcs@users.noreply.github.com> --- CHANGELOG.md | 3 ++- packages/web3-core/types/index.d.ts | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ffab467fbd..dff2cbd344a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -428,4 +428,5 @@ Released with 1.0.0-beta.37 code base. ## [Unreleased] ## [1.5.2] -- `maxPriorityFeePerGas` and `maxFeePerGas` added to `Transaction` and `TransactionConfig` interfaces (#4232) \ No newline at end of file +- `maxPriorityFeePerGas` and `maxFeePerGas` added to `Transaction` and `TransactionConfig` interfaces (#4232) + diff --git a/packages/web3-core/types/index.d.ts b/packages/web3-core/types/index.d.ts index 9845e3e61c5..c461b1ac505 100644 --- a/packages/web3-core/types/index.d.ts +++ b/packages/web3-core/types/index.d.ts @@ -134,6 +134,8 @@ export interface Transaction { to: string | null; value: string; gasPrice: string; + maxPriorityFeePerGas?: string; + maxFeePerGas?: string; gas: number; input: string; } @@ -144,6 +146,8 @@ export interface TransactionConfig { value?: number | string | BN; gas?: number | string; gasPrice?: number | string | BN; + maxPriorityFeePerGas?: number | string | BN; + maxFeePerGas?: number | string | BN; data?: string; nonce?: number; chainId?: number;