diff --git a/ironfish/src/wallet/account/encoder/multiSigKeys.ts b/ironfish/src/wallet/account/encoder/multiSigKeys.ts index f290c9338a..20f08927e8 100644 --- a/ironfish/src/wallet/account/encoder/multiSigKeys.ts +++ b/ironfish/src/wallet/account/encoder/multiSigKeys.ts @@ -64,8 +64,7 @@ export function isSignerMultiSig(multiSigKeys: MultiSigKeys): multiSigKeys is Mu } export function AssertIsSignerMultiSig( - multiSigKeys: MultiSigKeys | undefined, + multiSigKeys: MultiSigKeys, ): asserts multiSigKeys is MultiSigSigner { - Assert.isNotUndefined(multiSigKeys) Assert.isTrue(isSignerMultiSig(multiSigKeys)) } diff --git a/ironfish/src/wallet/wallet.test.slow.ts b/ironfish/src/wallet/wallet.test.slow.ts index b7c91b287c..a657598663 100644 --- a/ironfish/src/wallet/wallet.test.slow.ts +++ b/ironfish/src/wallet/wallet.test.slow.ts @@ -1215,6 +1215,7 @@ describe('Wallet', () => { const signingCommitments: Commitment[] = [] for (const participant of participants) { + Assert.isNotUndefined(participant.multiSigKeys) AssertIsSignerMultiSig(participant.multiSigKeys) signingCommitments.push( createSigningCommitment(participant.multiSigKeys.keyPackage, seed), @@ -1287,6 +1288,7 @@ describe('Wallet', () => { const signatureShares: Record = {} for (const participant of participants) { + Assert.isNotUndefined(participant.multiSigKeys) AssertIsSignerMultiSig(participant.multiSigKeys) signatureShares[participant.multiSigKeys.identifier] = createSigningShare( signingPackage,