Skip to content

Commit ba6854b

Browse files
committed
Added effectiveGasPrice to receipt.
1 parent 1e31b34 commit ba6854b

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

packages/abstract-provider/src.ts/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export interface TransactionReceipt {
113113
blockNumber: number,
114114
confirmations: number,
115115
cumulativeGasUsed: BigNumber,
116+
effectiveGasPrice: BigNumber,
116117
byzantium: boolean,
117118
type: number;
118119
status?: number

packages/providers/src.ts/formatter.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export class Formatter {
124124
blockNumber: number,
125125
confirmations: Formatter.allowNull(number, null),
126126
cumulativeGasUsed: bigNumber,
127+
effectiveGasPrice: Formatter.allowNull(bigNumber),
127128
status: Formatter.allowNull(number),
128129
type: type
129130
};
@@ -339,12 +340,6 @@ export class Formatter {
339340

340341
const result: TransactionResponse = Formatter.check(this.formats.transaction, transaction);
341342

342-
if (result.type === 2) {
343-
if (result.gasPrice == null) {
344-
result.gasPrice = result.maxFeePerGas;
345-
}
346-
}
347-
348343
if (transaction.chainId != null) {
349344
let chainId = transaction.chainId;
350345

packages/testcases/src.ts/browser-data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)