diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-18 23:24:54 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-18 23:24:54 +0800 |
commit | 946978e454a93b9642a9ed261229ea749e71fd2f (patch) | |
tree | 90345ddc5fd796fa34a7d5c08cd10dc94f8565a2 /src/0x.ts | |
parent | 40a0d345b5fc00d36928387cd558133358624f12 (diff) | |
download | dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar.gz dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar.bz2 dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar.lz dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar.xz dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.tar.zst dexon-sol-tools-946978e454a93b9642a9ed261229ea749e71fd2f.zip |
Add explanatory comment
Diffstat (limited to 'src/0x.ts')
-rw-r--r-- | src/0x.ts | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -315,6 +315,12 @@ export class ZeroEx { }); return txReceiptPromise; } + /* + * `TokenWrapper` needs a token transfer proxy address. `TokenTransferProxy` address is fetched from + * an `ExchnageWrapper`. `ExchangeWrapper` needs `TokenWrapper` to validate orders. Cycle. + * In order to break this - we create this function here and pass it as a parameter to the `TokenWrapper` + * and `ProxyWrapper`. + */ private async _getTokenTransferProxyAddressAsync(): Promise<string> { const tokenTransferProxyAddress = await (this.exchange as any)._getTokenTransferProxyAddressAsync(); return tokenTransferProxyAddress; |