diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-07 02:17:13 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-07 02:17:13 +0800 |
commit | 58603e2a5a06f6bccfb5b6d2d12732ee6f0e69da (patch) | |
tree | 76d90e84e57cf65d7bbb1159cbdf73c3537b493e /packages/contract_templates | |
parent | d97184880ceac6215ce50916a29f4cb01bbfc63f (diff) | |
parent | 49049b8c126c779d68934eaceb6835ebf3a24a49 (diff) | |
download | dexon-sol-tools-58603e2a5a06f6bccfb5b6d2d12732ee6f0e69da.tar dexon-sol-tools-58603e2a5a06f6bccfb5b6d2d12732ee6f0e69da.tar.gz dexon-sol-tools-58603e2a5a06f6bccfb5b6d2d12732ee6f0e69da.tar.bz2 dexon-sol-tools-58603e2a5a06f6bccfb5b6d2d12732ee6f0e69da.tar.lz dexon-sol-tools-58603e2a5a06f6bccfb5b6d2d12732ee6f0e69da.tar.xz dexon-sol-tools-58603e2a5a06f6bccfb5b6d2d12732ee6f0e69da.tar.zst dexon-sol-tools-58603e2a5a06f6bccfb5b6d2d12732ee6f0e69da.zip |
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/improve-linting
Diffstat (limited to 'packages/contract_templates')
-rw-r--r-- | packages/contract_templates/contract.handlebars | 4 | ||||
-rw-r--r-- | packages/contract_templates/partials/callAsync.handlebars | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/contract_templates/contract.handlebars b/packages/contract_templates/contract.handlebars index 31dbc15cb..9e77b711d 100644 --- a/packages/contract_templates/contract.handlebars +++ b/packages/contract_templates/contract.handlebars @@ -2,7 +2,7 @@ * This file is auto-generated using abi-gen. Don't edit directly. * Templates can be found at https://github.com/0xProject/0x-monorepo/tree/development/packages/contract_templates. */ -// tslint:disable:no-consecutive-blank-lines ordered-imports +// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma whitespace // tslint:disable-next-line:no-unused-variable import { BaseContract } from '@0xproject/base-contract'; import { ContractArtifact } from '@0xproject/sol-compiler'; @@ -83,7 +83,7 @@ export class {{contractName}}Contract extends BaseContract { return contractInstance; } constructor(abi: ContractAbi, address: string, provider: Provider, txDefaults?: Partial<TxData>) { - super("{{contractName}}", abi, address, provider, txDefaults); + super('{{contractName}}', abi, address, provider, txDefaults); classUtils.bindAll(this, ['_ethersInterfacesByFunctionSignature', 'address', 'abi', '_web3Wrapper']); } } // tslint:disable:max-file-line-count diff --git a/packages/contract_templates/partials/callAsync.handlebars b/packages/contract_templates/partials/callAsync.handlebars index 99fda80e1..5d14b1823 100644 --- a/packages/contract_templates/partials/callAsync.handlebars +++ b/packages/contract_templates/partials/callAsync.handlebars @@ -18,7 +18,7 @@ async callAsync( data: encodedData, }, self._web3Wrapper.getContractDefaults(), - ) + ); const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); let resultArray = ethersFunction.parse(rawCallResult); const outputAbi = (_.find(self.abi, {name: '{{this.name}}'}) as MethodAbi).outputs; |