From 0e972717c8ff6e5b7f5065e15335a754cdc4b28f Mon Sep 17 00:00:00 2001 From: rajk93 Date: Thu, 18 Dec 2025 17:56:29 +0530 Subject: [PATCH] fix: use asMulti for first multisig approval to store call data (#12062) --- packages/react-signer/src/TxSigned.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/react-signer/src/TxSigned.tsx b/packages/react-signer/src/TxSigned.tsx index 4d9854b933..70ff7e02eb 100644 --- a/packages/react-signer/src/TxSigned.tsx +++ b/packages/react-signer/src/TxSigned.tsx @@ -173,7 +173,11 @@ async function wrapTx (api: ApiPromise, currentItem: QueueTx, { isMultiCall, mul timepoint = info.unwrap().when; } - tx = isMultiCall + // Check if this is the first approval (no existing multisig) + const isFirstApproval = info.isNone; + const shouldUseAsMulti = isFirstApproval || isMultiCall; + + tx = shouldUseAsMulti ? api.tx[multiModule].asMulti.meta.args.length === 5 // We are doing toHex here since we have a Vec input // eslint-disable-next-line @typescript-eslint/no-unsafe-argument