Skip to content

Commit

Permalink
Fix pool proposal (#2042)
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser authored Mar 28, 2024
1 parent 88c69bc commit 10d0987
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion centrifuge-js/src/modules/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,10 @@ export function getPoolsModule(inst: Centrifuge) {
if (options?.createType === 'propose') {
const proposalTx = api.tx.utility.batchAll([
api.tx.preimage.notePreimage(tx.method.toHex()),
api.tx.democracy.propose({ Inline: tx.method.hash }, api.consts.democracy.minimumDeposit),
api.tx.democracy.propose(
{ Lookup: [tx.method.hash, tx.method.encodedLength] },
api.consts.democracy.minimumDeposit
),
])
return inst.wrapSignAndSend(api, proposalTx, options)
}
Expand Down

0 comments on commit 10d0987

Please sign in to comment.