Skip to content

Commit d7ced8b

Browse files
mkaczanowskiwelldan97
authored andcommitted
substrate: fix nomination to a single validator
1 parent 9986ff9 commit d7ced8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/substrate/src/staker.ts

+3
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ export class SubstrateStaker {
344344
throw new Error(`unable to find method ${txCall.section}.${txCall.method}`)
345345
}
346346

347+
if (params.length === 1) {
348+
return { tx: api.tx[txCall.section][txCall.method](params) }
349+
}
347350
return { tx: api.tx[txCall.section][txCall.method](...params) }
348351
}
349352

0 commit comments

Comments
 (0)