Skip to content

Commit 7674888

Browse files
author
Rahul Patni
committed
fix test
1 parent b3d1e72 commit 7674888

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ironfish/src/rpc/routes/wallet/multisig/createParticipant.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@ describe('Route wallet/multisig/createParticipant', () => {
4545
const name = 'identity'
4646
const response = await routeTest.client.wallet.multisig.createParticipant({ name })
4747

48-
const secretValue = await routeTest.node.wallet.walletDb.getMultisigSecretByName(name)
48+
const secretValue = await routeTest.node.wallet.walletDb.getMultisigIdentity(
49+
Buffer.from(response.content.identity, 'hex'),
50+
)
4951
Assert.isNotUndefined(secretValue)
50-
51-
const identity = await routeTest.node.wallet.walletDb.getMultisigIdentity(name)
52-
Assert.isNotUndefined(identity)
53-
54-
expect(identity.name).toEqual(name)
52+
expect(secretValue.name).toEqual(name)
5553
})
5654
})

0 commit comments

Comments
 (0)