Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

fix: virtual multisig ownership swap events ordering #729

Merged
merged 1 commit into from
Mar 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions patterns/multisig/VirtualMultisigRune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ export class VirtualMultisigRune<out U, out C extends Chain = Chain>
),
// 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),
Expand Down