From 6c85a4ec3355cf306e8e7814eb9a3208709313ae Mon Sep 17 00:00:00 2001 From: Oleksii Kosynskyi Date: Thu, 26 Oct 2023 11:49:06 -0400 Subject: [PATCH] add changelog --- CHANGELOG.md | 7 ++++++- packages/web3-eth/src/rpc_method_wrappers.ts | 7 +++---- packages/web3-types/CHANGELOG.md | 5 ++++- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1714a8f56b..b61e7c6b019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2225,4 +2225,9 @@ If there are any bugs, improvements, optimizations or any new feature proposal f - Dependencies updated -## [Unreleased] \ No newline at end of file +## [Unreleased] +### Added + +#### web3-types + +- `gasPrice` was added to `Transaction1559UnsignedAPI` type. (#6539) diff --git a/packages/web3-eth/src/rpc_method_wrappers.ts b/packages/web3-eth/src/rpc_method_wrappers.ts index 3a16c8081f6..7aad8d33a81 100644 --- a/packages/web3-eth/src/rpc_method_wrappers.ts +++ b/packages/web3-eth/src/rpc_method_wrappers.ts @@ -47,7 +47,6 @@ import { TransactionForAccessList, AccessListResult, Eip712TypedData, - TransactionWithSenderAPI, } from 'web3-types'; import { Web3Context, Web3PromiEvent } from 'web3-core'; import { format, hexToBytes, bytesToUint8Array, numberToHex } from 'web3-utils'; @@ -740,7 +739,7 @@ export async function signTransaction( ) { const response = await ethRpcMethods.signTransaction( web3Context.requestManager, - formatTransaction(transaction as TransactionWithSenderAPI, ETH_DATA_FORMAT), + formatTransaction(transaction, ETH_DATA_FORMAT), ); // Some clients only return the encoded signed transaction (e.g. Ganache) // while clients such as Geth return the desired SignedTransactionInfoAPI object @@ -803,7 +802,7 @@ export async function estimateGas( const response = await ethRpcMethods.estimateGas( web3Context.requestManager, - transactionFormatted as TransactionWithSenderAPI, + transactionFormatted, blockNumberFormatted, ); @@ -951,7 +950,7 @@ export async function createAccessList( const response = (await ethRpcMethods.createAccessList( web3Context.requestManager, - formatTransaction(transaction as TransactionWithSenderAPI, ETH_DATA_FORMAT), + formatTransaction(transaction, ETH_DATA_FORMAT), blockNumberFormatted, )) as unknown as AccessListResult; diff --git a/packages/web3-types/CHANGELOG.md b/packages/web3-types/CHANGELOG.md index a526d15b3a0..97b01da0d31 100644 --- a/packages/web3-types/CHANGELOG.md +++ b/packages/web3-types/CHANGELOG.md @@ -170,4 +170,7 @@ Documentation: - Interface `EventLog` was added. (#6410) -## [Unreleased] \ No newline at end of file +## [Unreleased] + +### Added +- `gasPrice` was added to `Transaction1559UnsignedAPI` type. (#6539)