Skip to content

Commit

Permalink
fix sending coins when funding account is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Mar 14, 2024
1 parent 5b7edca commit b05d59f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/warp-protocol/src/tx/useMigrateJobTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export const useMigrateJobTx = (waitForCompletion?: boolean) => {
.executions(executions)
.compose();

const createJobV2Tx = await sdkv2.tx.createJob(wallet.walletAddress, createJobMsg, [
new Coin(nativeTokenDenom, operationalAmount),
]);
const coins = fundingAccount ? [] : [new Coin(nativeTokenDenom, operationalAmount)];

const createJobV2Tx = await sdkv2.tx.createJob(wallet.walletAddress, createJobMsg, coins);
const deleteJobV1Tx = await sdkv1.tx.deleteJob(wallet.walletAddress, job.info.id);

const msgs = [...createJobV2Tx.msgs, ...deleteJobV1Tx.msgs];
Expand Down

0 comments on commit b05d59f

Please sign in to comment.