Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uses multisigAccountPrompt in signing commands #5722

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions ironfish-cli/src/commands/wallet/multisig/commitment/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export class CreateSigningCommitmentCommand extends IronfishCommand {
const client = await this.connectRpc()
await ui.checkWalletUnlocked(client)

let participantName = flags.account
if (!participantName) {
participantName = await ui.multisigSecretPrompt(client)
let accountName = flags.account
if (!accountName) {
accountName = await ui.multisigAccountPrompt(client)
}

let identities = options.identity
Expand Down Expand Up @@ -88,7 +88,7 @@ export class CreateSigningCommitmentCommand extends IronfishCommand {
await renderUnsignedTransactionDetails(
client,
unsignedTransaction,
participantName,
accountName,
this.logger,
)

Expand All @@ -100,7 +100,7 @@ export class CreateSigningCommitmentCommand extends IronfishCommand {
}

const response = await client.wallet.multisig.createSigningCommitment({
account: participantName,
account: accountName,
unsignedTransaction: unsignedTransactionInput,
signers: identities.map((identity) => ({ identity })),
})
Expand Down
10 changes: 5 additions & 5 deletions ironfish-cli/src/commands/wallet/multisig/signature/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export class CreateSignatureShareCommand extends IronfishCommand {
const client = await this.connectRpc()
await ui.checkWalletUnlocked(client)

let participantName = flags.account
if (!participantName) {
participantName = await ui.multisigSecretPrompt(client)
let accountName = flags.account
if (!accountName) {
accountName = await ui.multisigAccountPrompt(client)
}

let signingPackageString = options.signingPackage
Expand All @@ -66,7 +66,7 @@ export class CreateSignatureShareCommand extends IronfishCommand {
await renderUnsignedTransactionDetails(
client,
unsignedTransaction,
participantName,
accountName,
this.logger,
)

Expand All @@ -83,7 +83,7 @@ export class CreateSignatureShareCommand extends IronfishCommand {
}

const signatureShareResponse = await client.wallet.multisig.createSignatureShare({
account: participantName,
account: accountName,
signingPackage: signingPackageString,
})

Expand Down