diff --git a/patterns/multisig/VirtualMultisigRune.ts b/patterns/multisig/VirtualMultisigRune.ts index 30b2f7d1b..d4644defe 100644 --- a/patterns/multisig/VirtualMultisigRune.ts +++ b/patterns/multisig/VirtualMultisigRune.ts @@ -231,8 +231,9 @@ export class VirtualMultisigRune ), // TODO: ensure that this supports other address types / revisit source of deployer accountId ...memberProxies - .filter((_, i) => !equals(memberAccountIds[i]!, deployer.address.value!)) - .flatMap((proxy, i) => + .map((proxy, i) => [proxy, i] as const) + .filter(([_, i]) => !equals(memberAccountIds[i]!, deployer.address.value!)) + .flatMap(([proxy, i]) => replaceDelegateCalls( chain, MultiAddress.Id(proxy),