diff options
author | Jacob Evans <jacob@dekz.net> | 2018-04-19 13:25:04 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-04-19 13:25:04 +0800 |
commit | d186f6148bd44701dcc41d6b1633aae9baff2234 (patch) | |
tree | d1642a7cae2312c19d7f48eacc35d67460524996 /packages/utils/src/abi_decoder.ts | |
parent | 207019c7f3dafa72c6561f55a8ade030bcab6ebe (diff) | |
download | dexon-sol-tools-d186f6148bd44701dcc41d6b1633aae9baff2234.tar dexon-sol-tools-d186f6148bd44701dcc41d6b1633aae9baff2234.tar.gz dexon-sol-tools-d186f6148bd44701dcc41d6b1633aae9baff2234.tar.bz2 dexon-sol-tools-d186f6148bd44701dcc41d6b1633aae9baff2234.tar.lz dexon-sol-tools-d186f6148bd44701dcc41d6b1633aae9baff2234.tar.xz dexon-sol-tools-d186f6148bd44701dcc41d6b1633aae9baff2234.tar.zst dexon-sol-tools-d186f6148bd44701dcc41d6b1633aae9baff2234.zip |
Use ethers in abi_decoder utils
Diffstat (limited to 'packages/utils/src/abi_decoder.ts')
-rw-r--r-- | packages/utils/src/abi_decoder.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/utils/src/abi_decoder.ts b/packages/utils/src/abi_decoder.ts index 36c7839cf..cb3052a33 100644 --- a/packages/utils/src/abi_decoder.ts +++ b/packages/utils/src/abi_decoder.ts @@ -9,7 +9,7 @@ import { RawLog, SolidityTypes, } from '@0xproject/types'; -import * as ethersContracts from 'ethers-contracts'; +import * as ethers from 'ethers'; import * as _ from 'lodash'; import { BigNumber } from './configured_bignumber'; @@ -36,7 +36,7 @@ export class AbiDecoder { if (_.isUndefined(event)) { return log; } - const ethersInterface = new ethersContracts.Interface([event]); + const ethersInterface = new ethers.Interface([event]); const logData = log.data; const decodedParams: DecodedLogArgs = {}; let topicsIndex = 1; @@ -77,7 +77,7 @@ export class AbiDecoder { if (_.isUndefined(abiArray)) { return; } - const ethersInterface = new ethersContracts.Interface(abiArray); + const ethersInterface = new ethers.Interface(abiArray); _.map(abiArray, (abi: AbiDefinition) => { if (abi.type === AbiType.Event) { const topic = ethersInterface.events[abi.name].topic; |