Skip to content

Commit

Permalink
feat: adding more steps to confirm signature (anoma#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorezende authored and seleniumforest committed Apr 11, 2024
1 parent 0d27615 commit 3054e9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/extension/src/Approvals/ConfirmSignature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ export const ConfirmSignature: React.FC<Props> = ({ details }) => {
throw new Error("Not all required arguments were provided!");
}

const address = shortenAddress(signer, 24);

setStatus(Status.Pending);
setStatusInfo(
`Decrypting keys and signing with ${shortenAddress(signer, 24)}`
);
setStatusInfo(`Decrypting keys for ${address}`);

try {
const isAuthenticated = await requester.sendMessage(
Expand All @@ -51,6 +51,7 @@ export const ConfirmSignature: React.FC<Props> = ({ details }) => {
throw new Error("Invalid password!");
}

setStatusInfo(`Signing keys with ${address}`);
await requester
.sendMessage(
Ports.Background,
Expand Down

0 comments on commit 3054e9d

Please sign in to comment.