diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-08 06:05:04 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-08 08:45:39 +0800 |
commit | 049a3be1027c46be666c806def2ad57a0c1ad255 (patch) | |
tree | a1823ff66ff28a175e27440211b32ffec5bbf150 /src | |
parent | b21a02424c135acc901bd016c389d85276d48398 (diff) | |
download | dexon-sol-tools-049a3be1027c46be666c806def2ad57a0c1ad255.tar dexon-sol-tools-049a3be1027c46be666c806def2ad57a0c1ad255.tar.gz dexon-sol-tools-049a3be1027c46be666c806def2ad57a0c1ad255.tar.bz2 dexon-sol-tools-049a3be1027c46be666c806def2ad57a0c1ad255.tar.lz dexon-sol-tools-049a3be1027c46be666c806def2ad57a0c1ad255.tar.xz dexon-sol-tools-049a3be1027c46be666c806def2ad57a0c1ad255.tar.zst dexon-sol-tools-049a3be1027c46be666c806def2ad57a0c1ad255.zip |
Revert "Rename ZRX to ZRX_TOKEN_CONTRACT"
This reverts commit 6f0b8a185b6fcf58b7427fb907599dbc82c10eaf.
Diffstat (limited to 'src')
-rw-r--r-- | src/artifacts/exchange/Exchange_v1.json | 26 | ||||
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 2 | ||||
-rw-r--r-- | src/types.ts | 2 |
3 files changed, 2 insertions, 28 deletions
diff --git a/src/artifacts/exchange/Exchange_v1.json b/src/artifacts/exchange/Exchange_v1.json index dfebfc338..af36e870d 100644 --- a/src/artifacts/exchange/Exchange_v1.json +++ b/src/artifacts/exchange/Exchange_v1.json @@ -116,32 +116,6 @@ "type": "function" }, { - "constant": true, - "inputs": [], - "name": "ZRX_TOKEN_CONTRACT", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "PROXY_CONTRACT", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "type": "function" - }, - { "constant": false, "inputs": [ { diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 9bedb1b3c..f66e91534 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -800,7 +800,7 @@ export class ExchangeWrapper extends ContractWrapper { } private async _getZRXTokenAddressAsync(exchangeContractAddress: string): Promise<string> { const exchangeInstance = await this._getExchangeContractAsync(exchangeContractAddress); - const ZRXtokenAddress = await exchangeInstance.ZRX_TOKEN_CONTRACT.call(); + const ZRXtokenAddress = await exchangeInstance.ZRX.call(); return ZRXtokenAddress; } } diff --git a/src/types.ts b/src/types.ts index 2887e83ff..35dfd74d7 100644 --- a/src/types.ts +++ b/src/types.ts @@ -61,7 +61,7 @@ export interface ExchangeContract extends ContractInstance { LogFill: CreateContractEvent; LogCancel: CreateContractEvent; LogError: CreateContractEvent; - ZRX_TOKEN_CONTRACT: { + ZRX: { call: () => Promise<string>; }; getUnavailableValueT: { |