Skip to content

Commit 78e4273

Browse files
committed
Fxied getBlockWithTransactions results (1858).
1 parent dd09bf0 commit 78e4273

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/providers/src.ts/base-provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,8 @@ export class BaseProvider extends Provider implements EnsProvider {
13891389
}
13901390
}
13911391

1392-
const blockWithTxs = this.formatter.blockWithTransactions(block);
1393-
blockWithTxs.transactions = block.transactions.map((tx: TransactionResponse) => this._wrapTransaction(tx));
1392+
const blockWithTxs: any = this.formatter.blockWithTransactions(block);
1393+
blockWithTxs.transactions = blockWithTxs.transactions.map((tx: TransactionResponse) => this._wrapTransaction(tx));
13941394
return blockWithTxs;
13951395
}
13961396

packages/providers/src.ts/formatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export class Formatter {
334334
transaction.creates = this.contractAddress(transaction);
335335
}
336336

337-
if (transaction.type === 1 && transaction.accessList == null) {
337+
if ((transaction.type === 1 || transaction.type === 2)&& transaction.accessList == null) {
338338
transaction.accessList = [ ];
339339
}
340340

0 commit comments

Comments
 (0)