From 546dfa6d7e2d5ebb33e4bb0424ac7ed44a18f384 Mon Sep 17 00:00:00 2001 From: Gareth Fuller Date: Wed, 5 Jul 2023 09:33:09 +0100 Subject: [PATCH] chore: Pass value to sendTransaction --- .../pools/joins/handlers/generalised-join.handler.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/services/balancer/pools/joins/handlers/generalised-join.handler.ts b/src/services/balancer/pools/joins/handlers/generalised-join.handler.ts index 7f71d421aa..3495e9dc77 100644 --- a/src/services/balancer/pools/joins/handlers/generalised-join.handler.ts +++ b/src/services/balancer/pools/joins/handlers/generalised-join.handler.ts @@ -32,9 +32,9 @@ export class GeneralisedJoinHandler implements JoinPoolHandler { } const txBuilder = new TransactionBuilder(params.signer); - const { to, encodedCall } = this.lastJoinRes; + const { to, encodedCall, value } = this.lastJoinRes; - return txBuilder.raw.sendTransaction({ to, data: encodedCall }); + return txBuilder.raw.sendTransaction({ to, data: encodedCall, value }); } async queryJoin({ @@ -71,7 +71,6 @@ export class GeneralisedJoinHandler implements JoinPoolHandler { console.log({ simulationType }); - console.log('tokenAddresses', tokenAddresses); this.lastJoinRes = await this.sdk.pools.generalisedJoin( poolId, tokenAddresses,