diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-08-07 07:58:46 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-08-09 05:27:30 +0800 |
commit | 52e094addcecc6136c9582a51dd52b8f44f769f7 (patch) | |
tree | b7fafb49d1dccb99c9d16991454fc5229b5128a9 /packages/base-contract | |
parent | 6a6739ebbec291b61226c047fde7b3d0bb4a7250 (diff) | |
download | dexon-sol-tools-52e094addcecc6136c9582a51dd52b8f44f769f7.tar.gz dexon-sol-tools-52e094addcecc6136c9582a51dd52b8f44f769f7.tar.zst dexon-sol-tools-52e094addcecc6136c9582a51dd52b8f44f769f7.zip |
Move some ethers-related types to typescript-typings/ethers
Diffstat (limited to 'packages/base-contract')
-rw-r--r-- | packages/base-contract/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/base-contract/src/index.ts b/packages/base-contract/src/index.ts index 31d2e4019..12f974445 100644 --- a/packages/base-contract/src/index.ts +++ b/packages/base-contract/src/index.ts @@ -87,7 +87,7 @@ export class BaseContract { // if it overflows the corresponding Solidity type, there is a bug in the // encoder, or the encoder performs unsafe type coercion. public static strictArgumentEncodingCheck(inputAbi: DataItem[], args: any[]): void { - const coder = (ethers as any).utils.AbiCoder.defaultCoder; + const coder = ethers.utils.AbiCoder.defaultCoder; const params = abiUtils.parseEthersParams(inputAbi); const rawEncoded = coder.encode(params.names, params.types, args); const rawDecoded = coder.decode(params.names, params.types, rawEncoded); |