From 4ffd239c2fe83214c9749335acf9521d3b90a24f Mon Sep 17 00:00:00 2001 From: Karl Kempe Date: Thu, 20 Jan 2022 17:59:35 +0000 Subject: [PATCH] Add isNative argument --- react/src/swapper/swapper.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/react/src/swapper/swapper.ts b/react/src/swapper/swapper.ts index 816c3f9..846b2b2 100644 --- a/react/src/swapper/swapper.ts +++ b/react/src/swapper/swapper.ts @@ -580,6 +580,7 @@ export class UniswapToUniswapExecutor { tokens: CrossChainSwapTokens; // swapping + isNative: boolean; slippage: string; relayerFeeAmount: string; srcExecutionParams: ExecutionParameters; @@ -594,10 +595,13 @@ export class UniswapToUniswapExecutor { async initialize( tokenInAddress: string, - tokenOutAddress: string + tokenOutAddress: string, + isNative: boolean ): Promise { this.clearState(); + this.isNative = isNative; + const srcProvider = makeProvider(tokenInAddress); const dstProvider = makeProvider(tokenOutAddress);