From fed130df3dc6d15bff76844cae0a0ddb6429ab97 Mon Sep 17 00:00:00 2001 From: Noah Prince <83885631+ChewingGlass@users.noreply.github.com> Date: Thu, 10 Aug 2023 09:01:31 -0500 Subject: [PATCH] Feat/12 word warning (#414) * Fix dapp login * Add more warnings on key export --- src/features/dappLogin/DappLoginScreen.tsx | 6 +++++- src/locales/en.ts | 4 ++-- src/utils/linking.ts | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/features/dappLogin/DappLoginScreen.tsx b/src/features/dappLogin/DappLoginScreen.tsx index 35548f2f5..1c6a273a4 100644 --- a/src/features/dappLogin/DappLoginScreen.tsx +++ b/src/features/dappLogin/DappLoginScreen.tsx @@ -28,7 +28,11 @@ const makeBurnTxn = async (opts: { payerB58: string }) => { const txn = new TokenBurnV1({ amount: 1, payer: Address.fromB58(payerB58), - payee: Address.fromB58(payerB58), + // TODO: This must not be a global const or checksum fails for some reason?? + // This whole login process should go away anyway. + payee: Address.fromB58( + '13PuqyWXzPYeXcF1B9ZRx7RLkEygeL374ZABiQdwRSNzASdA1sn', + ), nonce: 0, memo: '', }) diff --git a/src/locales/en.ts b/src/locales/en.ts index 4aaaa8184..036cee8d2 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -804,14 +804,14 @@ export default { alertTitle: 'Are you sure?', done: 'Done', subtitle: - 'Do not share your private key!\n\nIf someone has your private key they will have full control of your wallet!', + 'Do not share your private key!\n\nIf someone has your private key they will have full control of your wallet! Do not enter this into any websites. Any individual asking for this key is likely a scammer.', tap: 'Tap to reveal your private key', title: 'Your Private Key', }, revealWords: { next: 'I have written these down', subtitle: - 'It is crucial you write all of these\n{{numWords}} words down, in order.\n\nHelium cannot recover these words.', + 'Never give these words to anyone, or enter them into any website. Any person or website asking for these words is likely a scammer. It is crucial you write all of these\n{{numWords}} words down, in order, and keep them safe.\n\nHelium cannot recover these words.', title: 'Your {{numWords}} Word Password', warning: 'Helium cannot recover these words', }, diff --git a/src/utils/linking.ts b/src/utils/linking.ts index 0d9f913a6..5065df2df 100644 --- a/src/utils/linking.ts +++ b/src/utils/linking.ts @@ -26,6 +26,7 @@ export const authenticatedLinking: LinkingOptions = { LinkWallet: 'link_wallet', SignHotspot: 'sign_hotspot', PaymentScreen: 'payment', + DappLoginScreen: 'dapp_login', ImportPrivateKey: 'import_key/:key', }, },