fix: use asMulti for first multisig approval to store call data (#12062)

This commit is contained in:
rajk93 2025-12-18 17:56:29 +05:30 committed by GitHub
parent f13b22c4d9
commit 0e972717c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<u8> input
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument