Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apps/agentic-chat/src/components/tools/useSwapExecution.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ export const useSwapExecution = (
ctx.setSubstatus('Requesting signature...')
const swapTxHash = await executeSwap(swapTx, { solanaSigner })
ctx.setMeta({ txHash: swapTxHash })

if (chainNamespace === CHAIN_NAMESPACE.Evm) {
ctx.setSubstatus('Waiting for confirmation...')
await waitForConfirmedReceipt(Number(chainReference), swapTxHash as `0x${string}`)
}

ctx.advanceStep()
ctx.markTerminal()
ctx.persist()
Expand Down
2 changes: 1 addition & 1 deletion apps/agentic-chat/src/utils/chains/evm/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function sendEvmTransaction(params: TransactionParams): Promise<str
value,
data,
})
if (!params.gasLimit) gas = estimatedGas
gas = gas !== undefined && gas > estimatedGas ? gas : estimatedGas
} catch (error) {
if (error instanceof SimulationError) throw error
console.warn('[simulation] EVM simulation failed, proceeding without:', error)
Expand Down
Loading