Skip to content

Commit ab33156

Browse files
authored
add account id param to DOT join pool (#76)
1 parent 556a8d0 commit ab33156

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.5.4",
3+
"version": "2.5.5",
44
"autor": "Kiln <[email protected]> (https://kiln.fi)",
55
"license": "BUSL-1.1",
66
"description": "JavaScript sdk for Kiln API",

src/services/dot.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,13 @@ export class DotService extends Service {
221221
/**
222222
* Craft dot join pool transaction
223223
* The amount to bond is transferred from the member to the pools account and immediately increases the pools bond.
224+
* @param accountId
224225
* @param memberAccount
225226
* @param amountDot
226227
* @param poolId
227228
*/
228229
async craftJoinPoolTx(
230+
accountId: string,
229231
memberAccount: string,
230232
amountDot: number,
231233
poolId: string,
@@ -235,6 +237,7 @@ export class DotService extends Service {
235237
const { data } = await api.post<DotTx>(
236238
`/v1/dot/transaction/join-pool`,
237239
{
240+
account_id: accountId,
238241
member_account: memberAccount,
239242
amount_planck: amountPlanck,
240243
pool_id: poolId,

0 commit comments

Comments
 (0)