Skip to content

Commit

Permalink
add gasPrice. revert fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Oct 26, 2023
1 parent 858ddd2 commit 7399a96
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/web3-eth/test/integration/rpc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ describe('rpc', () => {
expect(res0.v).toBeDefined();
expect(res0.data).toBeDefined();
expect(res0?.hash).toBe(receipt0.transactionHash);

expect(res0.gasPrice).toBeDefined();

const receipt1 = await web3Eth.sendTransaction({
Expand Down Expand Up @@ -344,6 +345,7 @@ describe('rpc', () => {
expect(res2.maxFeePerGas).toBeDefined();
expect(res2.maxPriorityFeePerGas).toBeDefined();
expect(res2.accessList).toBeDefined();
expect(res2.gasPrice).toBeDefined();
});

itIf(getSystemTestBackend() !== 'ganache')('getPendingTransactions', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const transaction: Partial<TransactionWithSenderAPI> = {
to: '0x3535353535353535353535353535353535353535',
value: '0x174876e800',
gas: '0x5208',
gasPrice: '0x4a817c800',
type: '0x0',
maxFeePerGas: '0x1229298c00',
maxPriorityFeePerGas: '0x49504f80',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const transaction: Partial<TransactionWithSenderAPI> = {
to: '0x3535353535353535353535353535353535353535',
value: '0x174876e800',
gas: '0x5208',
gasPrice: '0x4a817c800',
type: '0x0',
maxFeePerGas: '0x1229298c00',
maxPriorityFeePerGas: '0x49504f80',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const transaction: Partial<TransactionWithSenderAPI> = {
to: '0x3535353535353535353535353535353535353535',
value: '0x174876e800',
gas: '0x5208',
gasPrice: '0x4a817c800',
type: '0x0',
maxFeePerGas: '0x1229298c00',
maxPriorityFeePerGas: '0x49504f80',
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-types/src/apis/eth_execution_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface Transaction1559UnsignedAPI extends BaseTransactionAPI {
readonly maxFeePerGas: Uint;
readonly maxPriorityFeePerGas: Uint;
readonly accessList: AccessList;
readonly gasPrice?: never;
readonly gasPrice: Uint;
}

export interface Transaction1559SignedAPI extends Transaction1559UnsignedAPI {
Expand Down

0 comments on commit 7399a96

Please sign in to comment.