From 115508bd2b9d4c0c3c6d5100398249326caee188 Mon Sep 17 00:00:00 2001 From: Onno Visser <23527729+onnovisser@users.noreply.github.com> Date: Mon, 25 Mar 2024 09:31:00 +0100 Subject: [PATCH 1/2] fix propose --- centrifuge-js/src/modules/pools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centrifuge-js/src/modules/pools.ts b/centrifuge-js/src/modules/pools.ts index 3f5a2c57bc..d1a170490d 100644 --- a/centrifuge-js/src/modules/pools.ts +++ b/centrifuge-js/src/modules/pools.ts @@ -943,7 +943,7 @@ 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 }, api.consts.democracy.minimumDeposit), ]) return inst.wrapSignAndSend(api, proposalTx, options) } From 4cceac73360984bcd6f104cda10b95bff2020a12 Mon Sep 17 00:00:00 2001 From: Onno Visser <23527729+onnovisser@users.noreply.github.com> Date: Mon, 25 Mar 2024 10:04:24 +0100 Subject: [PATCH 2/2] add length --- centrifuge-js/src/modules/pools.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/centrifuge-js/src/modules/pools.ts b/centrifuge-js/src/modules/pools.ts index d1a170490d..1e1a5a7ae3 100644 --- a/centrifuge-js/src/modules/pools.ts +++ b/centrifuge-js/src/modules/pools.ts @@ -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({ Lookup: 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) }