Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Jan 11, 2025
1 parent d4742ed commit 500c21b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/neuron-wallet/src/services/transaction-sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,17 +332,19 @@ export default class TransactionSender {
for (const lockHash of lockHashes) {
const multisigConfig = multisigConfigMap[lockHash]
if (!multisigConfig) {
const BLOCK_UNRECOGNIZED = 0
const IGNORE_UNRECOGNIZED_AND_CONTINUE = 1
const res = await dialog.showMessageBox({
type: 'warning',
message: t('messageBox.unrecognized-lock-script.message'),
buttons: [
t('messageBox.unrecognized-lock-script.buttons.cancel'),
t('messageBox.unrecognized-lock-script.buttons.ignore'),
],
defaultId: 0,
cancelId: 1,
defaultId: BLOCK_UNRECOGNIZED,
cancelId: IGNORE_UNRECOGNIZED_AND_CONTINUE,
})
if (res.response === 1) {
if (res.response === IGNORE_UNRECOGNIZED_AND_CONTINUE) {
continue
}
throw new MultisigConfigNeedError()
Expand Down

1 comment on commit 500c21b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 12724569979

Please sign in to comment.