Skip to content

Commit

Permalink
fixup! Implement 0x gasless swap approve method
Browse files Browse the repository at this point in the history
  • Loading branch information
samholmes committed Jun 24, 2024
1 parent 519ae64 commit 26bf47c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/swap/defi/0x/0xGaslessSwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ export const make0xGaslessSwap: EdgeCorePluginFactory = (
walletId: swapRequest.fromWallet.id
}

// Don't forget to save the transaction to the wallet:
await swapRequest.fromWallet.saveTx(transaction)

return {
orderId: apiSwapSubmition.tradeHash,
transaction
Expand Down

0 comments on commit 26bf47c

Please sign in to comment.