aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/0x.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/0x.ts b/src/0x.ts
index 37e25eb0f..70d0c7acf 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -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;