Skip to content

Commit

Permalink
chore: Pass value to sendTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller committed Jul 5, 2023
1 parent 6e1c7b3 commit 546dfa6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 546dfa6

Please sign in to comment.