diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-09 18:55:10 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-09 22:01:34 +0800 |
commit | 22160df2d2d5aef63c3e2c3f502ac15119b18e07 (patch) | |
tree | c217e59fe3cc34108647bfc9f2ed7b6ae9876421 /packages/contract_templates | |
parent | 31ee8870b80579caf3762c1178043bb5bb6fe4fb (diff) | |
download | dexon-sol-tools-22160df2d2d5aef63c3e2c3f502ac15119b18e07.tar dexon-sol-tools-22160df2d2d5aef63c3e2c3f502ac15119b18e07.tar.gz dexon-sol-tools-22160df2d2d5aef63c3e2c3f502ac15119b18e07.tar.bz2 dexon-sol-tools-22160df2d2d5aef63c3e2c3f502ac15119b18e07.tar.lz dexon-sol-tools-22160df2d2d5aef63c3e2c3f502ac15119b18e07.tar.xz dexon-sol-tools-22160df2d2d5aef63c3e2c3f502ac15119b18e07.tar.zst dexon-sol-tools-22160df2d2d5aef63c3e2c3f502ac15119b18e07.zip |
Fix ethers build issue
Diffstat (limited to 'packages/contract_templates')
-rw-r--r-- | packages/contract_templates/contract.handlebars | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contract_templates/contract.handlebars b/packages/contract_templates/contract.handlebars index 9ae39f44f..de48779d3 100644 --- a/packages/contract_templates/contract.handlebars +++ b/packages/contract_templates/contract.handlebars @@ -5,7 +5,7 @@ import { BaseContract } from '@0xproject/base-contract'; import { BlockParam, BlockParamLiteral, CallData, ContractAbi, ContractArtifact, DecodedLogArgs, MethodAbi, Provider, TxData, TxDataPayable } from 'ethereum-types'; import { BigNumber, classUtils, logUtils } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; -import * as ethers from 'ethers'; +import { Interface } from 'ethers/utils/interface'; import * as _ from 'lodash'; // tslint:enable:no-unused-variable @@ -65,7 +65,7 @@ export class {{contractName}}Contract extends BaseContract { [{{> params inputs=ctor.inputs}}], BaseContract._bigNumberToString, ); - const iface = new ethers.Interface(abi); + const iface = new Interface(abi); const deployInfo = iface.deployFunction; const txData = deployInfo.encode(bytecode, [{{> params inputs=ctor.inputs}}]); const web3Wrapper = new Web3Wrapper(provider); |