Skip to content

Commit

Permalink
chore: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 15, 2024
1 parent 74226c8 commit 6c61bb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/hooks/useConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ const useConnect = () => {
console.log('signMessageXverse: ', params, await messageVerifier(params));

try {
await verifySignature({
...params
});
// await verifySignature({
// ...params
// });
AllowListStorage.setStorage({
address: params.address,
pubKey: params.pubKey,
Expand Down
5 changes: 3 additions & 2 deletions src/utils/storage/allowlist.storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface IStorageItem {
}

class AllowListStorage {
private static STORAGE_KEY = 'ALLOW_LIST_STORAGE';
private static STORAGE_KEY = 'ALLOW_LIST_STORAGE_0.0.1';

public static getStorage = (): IStorageItem[] | undefined => {
const data = storage.get(this.STORAGE_KEY);
Expand All @@ -24,7 +24,8 @@ class AllowListStorage {
storage.set(this.STORAGE_KEY, JSON.stringify([payload]));
return;
}
storage.set(this.STORAGE_KEY, JSON.stringify(data.push(payload)));
data.push(payload)
storage.set(this.STORAGE_KEY, JSON.stringify(data));
} catch (error) {
console.log('setStorage error: ', error);
}
Expand Down

0 comments on commit 6c61bb3

Please sign in to comment.