aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src/abi_decoder.ts
diff options
context:
space:
mode:
authorAndrew Maurer <git@maurer.me>2018-10-13 23:09:50 +0800
committerGitHub <noreply@github.com>2018-10-13 23:09:50 +0800
commit69e9dbd68323439ac817e71c610dfae3716bee26 (patch)
tree6b2791f09132524963ae5e0bb58afffcb3720736 /packages/utils/src/abi_decoder.ts
parentdc56ce454967d2bf0d5e8c93389c0fa71a9d1cc5 (diff)
parenta424c2adfabbbd9313b4f5ddeeeaebd0811fd1cd (diff)
downloaddexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar.gz
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar.bz2
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar.lz
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar.xz
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.tar.zst
dexon-sol-tools-69e9dbd68323439ac817e71c610dfae3716bee26.zip
Merge branch 'development' into development
Diffstat (limited to 'packages/utils/src/abi_decoder.ts')
-rw-r--r--packages/utils/src/abi_decoder.ts6
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;