diff options
Diffstat (limited to 'src')
-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; |