diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-08 20:52:00 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-10 23:46:57 +0800 |
commit | f9d80adaeeec827a8c2c81507d68d11e2681dcf3 (patch) | |
tree | b96fe5155073829c2c234428d2f5a7cc09c25733 /packages/base-contract/src | |
parent | 422e5a19d4dc0461bdaecd9133bb8f19ac99baa6 (diff) | |
download | dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar.gz dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar.bz2 dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar.lz dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar.xz dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar.zst dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.zip |
Remove deployer from 0x.js and migrations
Diffstat (limited to 'packages/base-contract/src')
-rw-r--r-- | packages/base-contract/src/index.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/base-contract/src/index.ts b/packages/base-contract/src/index.ts index c362a882b..57d720795 100644 --- a/packages/base-contract/src/index.ts +++ b/packages/base-contract/src/index.ts @@ -25,6 +25,8 @@ export class BaseContract { protected _web3Wrapper: Web3Wrapper; public abi: ContractAbi; public address: string; + public contractName: string; + public constructorArgs: any[] = []; protected static _formatABIDataItemList( abis: DataItem[], values: any[], @@ -114,7 +116,14 @@ export class BaseContract { }) as MethodAbi; return methodAbi; } - constructor(abi: ContractAbi, address: string, provider: Provider, defaults?: Partial<TxData>) { + constructor( + contractName: string, + abi: ContractAbi, + address: string, + provider: Provider, + defaults?: Partial<TxData>, + ) { + this.contractName = contractName; this._web3Wrapper = new Web3Wrapper(provider, defaults); this.abi = abi; this.address = address; |