diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-28 22:26:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 22:26:05 +0800 |
commit | 8926dac78c3ac8d75ad5ffd5b4febe36def4e53c (patch) | |
tree | 01c1b3f8dba486beb4e83e67ad0bc35c3da6a14e /packages/deployer/src/utils/encoder.ts | |
parent | 18cac3f0927a0424e3618fd56dba73fc9dfc0288 (diff) | |
parent | 01e27426d643b525661e044dbb8c8f27734329e7 (diff) | |
download | dexon-0x-contracts-8926dac78c3ac8d75ad5ffd5b4febe36def4e53c.tar dexon-0x-contracts-8926dac78c3ac8d75ad5ffd5b4febe36def4e53c.tar.gz dexon-0x-contracts-8926dac78c3ac8d75ad5ffd5b4febe36def4e53c.tar.bz2 dexon-0x-contracts-8926dac78c3ac8d75ad5ffd5b4febe36def4e53c.tar.lz dexon-0x-contracts-8926dac78c3ac8d75ad5ffd5b4febe36def4e53c.tar.xz dexon-0x-contracts-8926dac78c3ac8d75ad5ffd5b4febe36def4e53c.tar.zst dexon-0x-contracts-8926dac78c3ac8d75ad5ffd5b4febe36def4e53c.zip |
Merge pull request #482 from 0xProject/feature/web3-types
Move common types out of web3 types
Diffstat (limited to 'packages/deployer/src/utils/encoder.ts')
-rw-r--r-- | packages/deployer/src/utils/encoder.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/deployer/src/utils/encoder.ts b/packages/deployer/src/utils/encoder.ts index e3acde252..4f62662e1 100644 --- a/packages/deployer/src/utils/encoder.ts +++ b/packages/deployer/src/utils/encoder.ts @@ -1,15 +1,15 @@ +import { AbiDefinition, ContractAbi, DataItem } from '@0xproject/types'; import * as _ from 'lodash'; -import * as Web3 from 'web3'; import * as web3Abi from 'web3-eth-abi'; import { AbiType } from './types'; export const encoder = { - encodeConstructorArgsFromAbi(args: any[], abi: Web3.ContractAbi): string { + encodeConstructorArgsFromAbi(args: any[], abi: ContractAbi): string { const constructorTypes: string[] = []; - _.each(abi, (element: Web3.AbiDefinition) => { + _.each(abi, (element: AbiDefinition) => { if (element.type === AbiType.Constructor) { - _.each(element.inputs, (input: Web3.DataItem) => { + _.each(element.inputs, (input: DataItem) => { constructorTypes.push(input.type); }); } |