diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-09 22:28:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 22:28:44 +0800 |
commit | bd06ebde8d1a5caf138ad3b36f9a5c5f255f2312 (patch) | |
tree | b0229d6f0c45d72064aa59528f26546569563bb2 /packages/utils/src | |
parent | 9876f6cc3416033ddea7ade082799d542e620de4 (diff) | |
parent | fbd7115500b310caae5205d59ae1ba26befe5a35 (diff) | |
download | dexon-sol-tools-bd06ebde8d1a5caf138ad3b36f9a5c5f255f2312.tar dexon-sol-tools-bd06ebde8d1a5caf138ad3b36f9a5c5f255f2312.tar.gz dexon-sol-tools-bd06ebde8d1a5caf138ad3b36f9a5c5f255f2312.tar.bz2 dexon-sol-tools-bd06ebde8d1a5caf138ad3b36f9a5c5f255f2312.tar.lz dexon-sol-tools-bd06ebde8d1a5caf138ad3b36f9a5c5f255f2312.tar.xz dexon-sol-tools-bd06ebde8d1a5caf138ad3b36f9a5c5f255f2312.tar.zst dexon-sol-tools-bd06ebde8d1a5caf138ad3b36f9a5c5f255f2312.zip |
Merge pull request #1122 from 0xProject/feature/new-ethers
Upgrade ethers.js version
Diffstat (limited to 'packages/utils/src')
-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 ea8c91d10..ac3e54efb 100644 --- a/packages/utils/src/abi_decoder.ts +++ b/packages/utils/src/abi_decoder.ts @@ -9,7 +9,7 @@ import { RawLog, SolidityTypes, } from 'ethereum-types'; -import * as ethers from 'ethers'; +import { ethers } from 'ethers'; import * as _ from 'lodash'; import { addressUtils } from './address_utils'; @@ -41,7 +41,7 @@ export class AbiDecoder { return log; } const event = this._methodIds[methodId][numIndexedArgs]; - const ethersInterface = new ethers.Interface([event]); + const ethersInterface = new ethers.utils.Interface([event]); const decodedParams: DecodedLogArgs = {}; let topicsIndex = 1; @@ -96,7 +96,7 @@ export class AbiDecoder { if (_.isUndefined(abiArray)) { return; } - const ethersInterface = new ethers.Interface(abiArray); + const ethersInterface = new ethers.utils.Interface(abiArray); _.map(abiArray, (abi: AbiDefinition) => { if (abi.type === AbiType.Event) { const topic = ethersInterface.events[abi.name].topic; |