Skip to content

Commit

Permalink
[feat] 👽 update backend params to transfer all (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
dappsar committed Oct 31, 2024
1 parent c3ed6dd commit 6a58bf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/api/_data/blk-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import TokenPriceFeedsAbi from './_abis/TokenPriceFeedsAbi.json'

// ---------------------------------------------------------------------------------------------

export async function transferAll(walletTo: string): Promise<boolean> {
export async function transferAll(channelUserId: string, walletTo: string): Promise<boolean> {
try {
// TODO:
// const data = { wallet: walletTo }
// const response = await axios.post(`${BACKEND_API_URL}/transferall`, data)
// const data = { channel_user_id: channelUserId, dst_address: walletTo }
// const response = await axios.post(`${BACKEND_API_URL}/withdraw_funds`, data)
return true
} catch (error) {
console.error('Error transfering all funds:', error)
Expand Down

0 comments on commit 6a58bf5

Please sign in to comment.