Skip to content

Commit 6e908ca

Browse files
authored
fix send from vesting contract (#104)
1 parent 654830e commit 6e908ca

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kilnfi/sdk",
3-
"version": "2.17.0",
3+
"version": "2.17.1",
44
"autor": "Kiln <[email protected]> (https://kiln.fi)",
55
"license": "BUSL-1.1",
66
"description": "JavaScript sdk for Kiln API",

src/services/ton.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,21 @@ export class TonService extends Service {
107107

108108
/**
109109
* Craft TON send from a vesting contract tx
110+
* @param accountId id of the kiln account to use for the stake transaction
110111
* @param walletAddress sender of the transaction
111112
* @param vestingContractAddress vesting contract address
112113
* @param destinationAddress the destination to which the TON will be sent to
113114
* @param amountTon the amount of TON to send
114115
*/
115116
async craftSendFromVestingContractTx(
117+
accountId: string,
116118
walletAddress: string,
117119
vestingContractAddress: string,
118120
destinationAddress: string,
119121
amountTon: number,
120122
): Promise<TonTx> {
121123
const { data } = await api.post<TonTx>(`/v1/ton/transaction/send-from-vesting-contract`, {
124+
account_id: accountId,
122125
wallet: walletAddress,
123126
vesting_contract_address: vestingContractAddress,
124127
destination_address: destinationAddress,

0 commit comments

Comments
 (0)