Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Apr 20, 2022
1 parent cc46ae3 commit b91fc34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chains/ethereum/ethereum/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ export default class EthereumApi implements Api {
* ```
*/
@assertArgLength(1, 2)
async eth_getBlockByHash<IncludeTransactions extends boolean = false>(hash: DATA, transactions: IncludeTransactions): Promise<Ethereum.Block<IncludeTransactions, "internal"> | null> {
async eth_getBlockByHash<IncludeTransactions extends boolean = false>(hash: DATA, transactions?: IncludeTransactions): Promise<Ethereum.Block<IncludeTransactions, "internal"> | null> {
if (typeof transactions === "undefined") {
transactions = false as IncludeTransactions;
}
Expand Down

0 comments on commit b91fc34

Please sign in to comment.