diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-08 06:59:34 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-08 08:45:40 +0800 |
commit | cf6efc65961f9ee20533d53348183aa8250aa6c8 (patch) | |
tree | 2333790e19610c7d492bed93500791bceca78aaf | |
parent | 8d53c78661bbacf8634a7f97c9f3cbbfaed1912d (diff) | |
download | dexon-sol-tools-cf6efc65961f9ee20533d53348183aa8250aa6c8.tar dexon-sol-tools-cf6efc65961f9ee20533d53348183aa8250aa6c8.tar.gz dexon-sol-tools-cf6efc65961f9ee20533d53348183aa8250aa6c8.tar.bz2 dexon-sol-tools-cf6efc65961f9ee20533d53348183aa8250aa6c8.tar.lz dexon-sol-tools-cf6efc65961f9ee20533d53348183aa8250aa6c8.tar.xz dexon-sol-tools-cf6efc65961f9ee20533d53348183aa8250aa6c8.tar.zst dexon-sol-tools-cf6efc65961f9ee20533d53348183aa8250aa6c8.zip |
Migrate ZRX_TOKEN_AMOUNT
-rw-r--r-- | src/artifacts/exchange/Exchange_v1.json | 2 | ||||
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 2 | ||||
-rw-r--r-- | src/types.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/artifacts/exchange/Exchange_v1.json b/src/artifacts/exchange/Exchange_v1.json index a3766fae2..26b280cf1 100644 --- a/src/artifacts/exchange/Exchange_v1.json +++ b/src/artifacts/exchange/Exchange_v1.json @@ -395,7 +395,7 @@ { "constant": true, "inputs": [], - "name": "ZRX", + "name": "ZRX_TOKEN_CONTRACT", "outputs": [ { "name": "", diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 7ec186bf4..5bf4a3bf3 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -808,7 +808,7 @@ export class ExchangeWrapper extends ContractWrapper { } private async _getZRXTokenAddressAsync(exchangeContractAddress: string): Promise<string> { const exchangeInstance = await this._getExchangeContractAsync(exchangeContractAddress); - const ZRXtokenAddress = await exchangeInstance.ZRX.call(); + const ZRXtokenAddress = await exchangeInstance.ZRX_TOKEN_CONTRACT.call(); return ZRXtokenAddress; } } diff --git a/src/types.ts b/src/types.ts index 3b9a08aa1..e9b7f0c10 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: { + ZRX_TOKEN_CONTRACT: { call: () => Promise<string>; }; getUnavailableTakerTokenAmount: { |