wbobeirne / eth-balance-checker

Solidity contract to batch balance checks in one call
MIT License
253 stars 82 forks source link

Ethers TypeScript types incompatible #12

Closed varanauskas closed 3 years ago

varanauskas commented 3 years ago

I am trying to use the library with the most recent Ethers library (5.4.1) in TypeScript.

Yet, because Ethers updated their types, the types are incompatible.

I am getting this error:


  Type 'import("/node_modules/@ethersproject/abstract-provider/lib/index").Provider' is not assignable to type 'import("/node_modules/eth-balance-checker/node_modules/ethers/providers/abstract-provider").Provider'.
    The types returned by 'getGasPrice()' are incompatible between these types.
      Type 'Promise<import("/node_modules/@ethersproject/bignumber/lib/bignumber").BigNumber>' is not assignable to type 'Promise<import("/node_modules/eth-balance-checker/node_modules/ethers/utils/bignumber").BigNumber>'.
        Property 'maskn' is missing in type 'import("/node_modules/@ethersproject/bignumber/lib/bignumber").BigNumber' but required in type 'import("/node_modules/eth-balance-checker/node_modules/ethers/utils/bignumber").BigNumber'.```