Skip to content
This repository was archived by the owner on Dec 10, 2020. It is now read-only.

Commit 7857b3e

Browse files
authored
Fix getBlockByHash tsc error (#150)
1 parent 94575b1 commit 7857b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rpc/modules/eth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class Eth {
8282
* as the second argument
8383
* @return {Promise}
8484
*/
85-
async getBlockByHash (params: string[] | boolean[], cb: (err: Error | null, val?: any) => void) {
85+
async getBlockByHash (params: [string, boolean], cb: (err: Error | null, val?: any) => void) {
8686
let [blockHash, includeTransactions] = params
8787

8888
try {

0 commit comments

Comments
 (0)