Skip to content

Commit

Permalink
Fxied getBlockWithTransactions results (1858).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 18, 2021
1 parent dd09bf0 commit 78e4273
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/providers/src.ts/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1389,8 +1389,8 @@ export class BaseProvider extends Provider implements EnsProvider {
}
}

const blockWithTxs = this.formatter.blockWithTransactions(block);
blockWithTxs.transactions = block.transactions.map((tx: TransactionResponse) => this._wrapTransaction(tx));
const blockWithTxs: any = this.formatter.blockWithTransactions(block);
blockWithTxs.transactions = blockWithTxs.transactions.map((tx: TransactionResponse) => this._wrapTransaction(tx));
return blockWithTxs;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/providers/src.ts/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export class Formatter {
transaction.creates = this.contractAddress(transaction);
}

if (transaction.type === 1 && transaction.accessList == null) {
if ((transaction.type === 1 || transaction.type === 2)&& transaction.accessList == null) {
transaction.accessList = [ ];
}

Expand Down

0 comments on commit 78e4273

Please sign in to comment.