Skip to content

Commit

Permalink
Updates Transaction and TransactionConfig types (#4232)
Browse files Browse the repository at this point in the history
* Updates Transaction and TransactionConfig types

* Updates CHANGELOG.md

Co-authored-by: jdevcs <86780488+jdevcs@users.noreply.github.com>
  • Loading branch information
alexandresobolevski and jdevcs committed Nov 29, 2021
1 parent 4701b0b commit e8d8d04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -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)
- `maxPriorityFeePerGas` and `maxFeePerGas` added to `Transaction` and `TransactionConfig` interfaces (#4232)

4 changes: 4 additions & 0 deletions packages/web3-core/types/index.d.ts
Expand Up @@ -134,6 +134,8 @@ export interface Transaction {
to: string | null;
value: string;
gasPrice: string;
maxPriorityFeePerGas?: string;
maxFeePerGas?: string;
gas: number;
input: string;
}
Expand All @@ -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;
Expand Down

0 comments on commit e8d8d04

Please sign in to comment.