Skip to content

Commit

Permalink
feat: adding more steps to confirm signature
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorezende committed Feb 27, 2024
1 parent 268ae4b commit f6a68cc
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 @@ -29,10 +29,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 @@ -44,6 +44,7 @@ export const ConfirmSignature: React.FC<Props> = ({ details }) => {
throw new Error("Invalid password!");
}

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

0 comments on commit f6a68cc

Please sign in to comment.