diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-09 21:46:13 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-09 22:01:34 +0800 |
commit | f93774f855d5735aff975cdb87c61aad624b4c9a (patch) | |
tree | 1100824ec730578dac713dfcc590916f31e8017c /packages/contract_templates/contract.handlebars | |
parent | d21e6f3aaf0ec5bc4e86bee029dc206bb8a586ce (diff) | |
download | dexon-sol-tools-f93774f855d5735aff975cdb87c61aad624b4c9a.tar dexon-sol-tools-f93774f855d5735aff975cdb87c61aad624b4c9a.tar.gz dexon-sol-tools-f93774f855d5735aff975cdb87c61aad624b4c9a.tar.bz2 dexon-sol-tools-f93774f855d5735aff975cdb87c61aad624b4c9a.tar.lz dexon-sol-tools-f93774f855d5735aff975cdb87c61aad624b4c9a.tar.xz dexon-sol-tools-f93774f855d5735aff975cdb87c61aad624b4c9a.tar.zst dexon-sol-tools-f93774f855d5735aff975cdb87c61aad624b4c9a.zip |
Stop accesing ethers private methods
Diffstat (limited to 'packages/contract_templates/contract.handlebars')
-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 de48779d3..41e5c8630 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 { Interface } from 'ethers/utils/interface'; +import * as ethers from 'ethers'; 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 Interface(abi); + const iface = new ethers.utils.Interface(abi); const deployInfo = iface.deployFunction; const txData = deployInfo.encode(bytecode, [{{> params inputs=ctor.inputs}}]); const web3Wrapper = new Web3Wrapper(provider); |