From e5b96249d36f640e24ed72e374e7f5a44a961e4b Mon Sep 17 00:00:00 2001 From: simke9445 Date: Thu, 14 Mar 2024 15:58:14 +0100 Subject: [PATCH] fix sending coins when funding account is present --- apps/warp-protocol/src/tx/useCreateJobTx.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/warp-protocol/src/tx/useCreateJobTx.ts b/apps/warp-protocol/src/tx/useCreateJobTx.ts index a0696db..ae2382a 100644 --- a/apps/warp-protocol/src/tx/useCreateJobTx.ts +++ b/apps/warp-protocol/src/tx/useCreateJobTx.ts @@ -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,