Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ Released with 1.0.0-beta.37 code base.
- Fix web3-core-method throws on `f.call = this.call` when intrinsic is frozen (#4918) (#4938)
- Fix static tuple encoding (#4673) (#4884)
- Fix bug in handleRevert logic for eth_sendRawTransaction (#4902)
- Fix resolve type of getBlock function (#4911)

### Changed
- Replace deprecated String.prototype.substr() (#4855)
Expand Down
13 changes: 11 additions & 2 deletions packages/web3-eth/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,24 @@ export class Eth {
getBlock(blockHashOrBlockNumber: BlockNumber | string): Promise<BlockTransactionString>;
getBlock(
blockHashOrBlockNumber: BlockNumber | string,
returnTransactionObjects: boolean
returnTransactionObjects: false
): Promise<BlockTransactionString>;
getBlock(
blockHashOrBlockNumber: BlockNumber | string,
returnTransactionObjects: true
): Promise<BlockTransactionObject>;
getBlock(
blockHashOrBlockNumber: BlockNumber | string,
callback?: (error: Error, block: BlockTransactionString) => void
): Promise<BlockTransactionString>;
getBlock(
blockHashOrBlockNumber: BlockNumber | string,
returnTransactionObjects: boolean,
returnTransactionObjects: false,
callback?: (error: Error, block: BlockTransactionString) => void
): Promise<BlockTransactionString>;
getBlock(
blockHashOrBlockNumber: BlockNumber | string,
returnTransactionObjects: true,
callback?: (error: Error, block: BlockTransactionObject) => void
): Promise<BlockTransactionObject>;

Expand Down