From 26a2a1f7a266218c62c6a4daf4e7087d4d946ec8 Mon Sep 17 00:00:00 2001 From: Rahul Patni Date: Mon, 5 Feb 2024 15:15:24 -0800 Subject: [PATCH] fixing createSigningPackage test --- .../rpc/routes/multisig/createSigningPackage.test.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ironfish/src/rpc/routes/multisig/createSigningPackage.test.ts b/ironfish/src/rpc/routes/multisig/createSigningPackage.test.ts index c9ee1548df..e1a707fa26 100644 --- a/ironfish/src/rpc/routes/multisig/createSigningPackage.test.ts +++ b/ironfish/src/rpc/routes/multisig/createSigningPackage.test.ts @@ -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, @@ -29,17 +29,13 @@ describe('Route multisig/createSigningPackage', () => { const trustedDealerPackage = response.content - const commitments: Array = [] + const commitments: Array = [] 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)