Skip to content

Commit

Permalink
fix send from vesting contract (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
nooxx authored Jun 20, 2024
1 parent 654830e commit 6e908ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kilnfi/sdk",
"version": "2.17.0",
"version": "2.17.1",
"autor": "Kiln <[email protected]> (https://kiln.fi)",
"license": "BUSL-1.1",
"description": "JavaScript sdk for Kiln API",
Expand Down
3 changes: 3 additions & 0 deletions src/services/ton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,21 @@ export class TonService extends Service {

/**
* Craft TON send from a vesting contract tx
* @param accountId id of the kiln account to use for the stake transaction
* @param walletAddress sender of the transaction
* @param vestingContractAddress vesting contract address
* @param destinationAddress the destination to which the TON will be sent to
* @param amountTon the amount of TON to send
*/
async craftSendFromVestingContractTx(
accountId: string,
walletAddress: string,
vestingContractAddress: string,
destinationAddress: string,
amountTon: number,
): Promise<TonTx> {
const { data } = await api.post<TonTx>(`/v1/ton/transaction/send-from-vesting-contract`, {
account_id: accountId,
wallet: walletAddress,
vesting_contract_address: vestingContractAddress,
destination_address: destinationAddress,
Expand Down

0 comments on commit 6e908ca

Please sign in to comment.