Skip to content

Commit

Permalink
fix sending coins when funding account is present
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Mar 14, 2024
1 parent f35ee45 commit e5b9624
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/warp-protocol/src/tx/useCreateJobTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export const useCreateJobTx = () => {
.executions(executions)
.compose();

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

return sdk.tx.createJob(wallet.walletAddress, createJobMsg, coins);
},
{
txKey: TX_KEY.CREATE_JOB,
Expand Down

0 comments on commit e5b9624

Please sign in to comment.