Skip to content

Commit

Permalink
fix: update events in inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
TejasvOnly committed Sep 17, 2024
1 parent 8ef9a05 commit facce42
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const authWallet = async (

assertOrThrowInvalidResult(result.result);

forceStatusUpdate(AuthWalletEvent.WALLET_BASED);
forceStatusUpdate(AuthWalletEvent.WALLET_BASED_CARD_TAP);

logger.info('Completed');
return result.result;
Expand Down
7 changes: 4 additions & 3 deletions packages/app-inheritance/src/operations/authWallet/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
export enum AuthWalletEvent {
INIT = 0,
SEED_BASED = 1,
CARD_PAIRING = 2,
WALLET_BASED = 3,
CONFIRMED = 1,
SEED_BASED_CARD_TAP = 2,
CARD_PAIRING_CARD_TAP = 3,
WALLET_BASED_CARD_TAP = 4,
}

export type AuthWalletType =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export enum DecryptMessagesWithPinEvent {
INIT = 0,
CONFIRMED = 1,
MESSAGE_DECRYPTIED = 2,
MESSAGE_DECRYPTED_CARD_TAP = 2,
PIN_VERIFIED = 3,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const encryptMessageWithPin = async (

assertOrThrowInvalidResult(result.result?.encryptedData);

forceStatusUpdate(EncryptMessagesWithPinEvent.MESSAGE_ENCRYPTED);
forceStatusUpdate(EncryptMessagesWithPinEvent.MESSAGE_ENCRYPTED_CARD_TAP);

logger.info('Completed');
return { encryptedPacket: result.result.encryptedData };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ export enum EncryptMessagesWithPinEvent {
INIT = 0,
CONFIRMED = 1,
MESSAGE_VERIFIED = 2,
PIN_ENTERED = 3,
MESSAGE_ENCRYPTED = 4,
PIN_ENTERED_CARD_TAP = 3,
MESSAGE_ENCRYPTED_CARD_TAP = 4,
}

export type EncryptMessagesWithPinEventHandler = (
Expand Down

0 comments on commit facce42

Please sign in to comment.