Skip to content

Commit bda14e2

Browse files
committed
updte e2e demo
1 parent 5b836c6 commit bda14e2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

demo/onlyswap-e2e-demo.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,15 @@ async function main() {
9898
await ERC20Dst.mint(solverAddr, amount);
9999
await ERC20Dst.approve(await RouterDst.getAddress(), amount);
100100
await RouterDst.relayTokens(
101-
await ERC20Dst.getAddress(),
102-
recipientAddr,
103-
parseEther(formattedSwapRequestParams.amountOut.toString()),
101+
solverAddr,
104102
requestId,
105-
SRC_CHAIN_ID
103+
formattedSwapRequestParams.sender,
104+
formattedSwapRequestParams.recipient,
105+
formattedSwapRequestParams.tokenIn,
106+
formattedSwapRequestParams.tokenOut,
107+
parseEther(formattedSwapRequestParams.amountOut.toString()),
108+
SRC_CHAIN_ID,
109+
formattedSwapRequestParams.nonce
106110
);
107111

108112
const recipientBalanceAfter = await ERC20Dst.balanceOf(recipientAddr);

0 commit comments

Comments
 (0)