Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
minheq committed Feb 6, 2020
1 parent ab71723 commit 628f258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/useBlockQuery.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
// eslint-disable-next-line
import { Block } from 'web3/eth/types';
import { BlockTransactionString } from 'web3-eth';

import { useWeb3 } from './Web3Provider';

export const useFetchBlock = (): ((
blockNumber: number | 'latest',
) => Promise<Block>) => {
) => Promise<BlockTransactionString>) => {
const { web3 } = useWeb3();

return React.useCallback(
Expand Down

0 comments on commit 628f258

Please sign in to comment.