Skip to content

Commit

Permalink
fixing createSigningPackage test
Browse files Browse the repository at this point in the history
  • Loading branch information
patnir committed Feb 5, 2024
1 parent cf03a87 commit 26a2a1f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ironfish/src/rpc/routes/multisig/createSigningPackage.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import { IdentifierCommitment, ParticipantSecret } from '@ironfish/rust-nodejs'
import { Commitment, ParticipantSecret } from '@ironfish/rust-nodejs'
import {
createNodeTest,
useAccountFixture,
Expand Down Expand Up @@ -29,17 +29,13 @@ describe('Route multisig/createSigningPackage', () => {

const trustedDealerPackage = response.content

const commitments: Array<IdentifierCommitment> = []
const commitments: Array<Commitment> = []
for (let i = 0; i < 3; i++) {
const commitment = await routeTest.client.multisig.createSigningCommitment({
const signingCommitment = await routeTest.client.multisig.createSigningCommitment({
keyPackage: trustedDealerPackage.keyPackages[i].keyPackage,
seed,
})

commitments.push({
identifier: trustedDealerPackage.keyPackages[i].identifier,
commitment: commitment.content,
})
commitments.push(signingCommitment.content)
}

const account = await useAccountFixture(nodeTest.wallet)
Expand Down

0 comments on commit 26a2a1f

Please sign in to comment.