Skip to content

Commit

Permalink
remove debuging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Feb 8, 2024
1 parent 48168e9 commit 02691e5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/storage/store/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { SecureStore } from './SecureStore'
export async function saveSeed(seed: Uint8Array) {
try {
const str = Buffer.from(seed).toString('base64')
l('[saveSeed] base64 ', { seed, base64: str })
await SecureStore.set(STORE_KEYS.seed, str)
} catch (e) {
l('[saveSeed] error', { e })
Expand All @@ -19,9 +18,7 @@ export async function getSeed() {
try {
const str = await SecureStore.get(STORE_KEYS.seed)
const buffer = str ? Buffer.from(str, 'base64') : undefined
const seed = buffer ? new Uint8Array(buffer) : undefined
l('[getSeed] base64 ', { stored: str, seed })
return seed
return buffer ? new Uint8Array(buffer) : undefined
} catch (e) {
l('[getSeed] error', { e })
throw new Error('[getSeed] error')
Expand Down

0 comments on commit 02691e5

Please sign in to comment.