-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
US-1964 WalletConnect sessions don't get erased when the wallet is re…
…set (#900) * fix: wc sessions are being pulled from the same storage, even for different address * refactor: more effective solutions for removing WC sessions * fix: return the WC2 key to MMKV storage * fix: not being able to delete wc sessions * fix: renaming the mmkv back to mmkv.default * Added .toLowerCase() in the sign typed data resolver logic. * Update WalletConnect2Context.tsx * Update WalletConnect2Context.tsx --------- Co-authored-by: Francis Rodriguez <[email protected]> Co-authored-by: Jesse Clark <[email protected]>
- Loading branch information
1 parent
f7139fe
commit a62861d
Showing
5 changed files
with
54 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import { ChainID } from 'lib/eoaWallet' | ||
|
||
import { MMKVStorage } from 'storage/MMKVStorage' | ||
|
||
const ChainStorage = new MMKVStorage('chainStorage') | ||
import { MainStorage } from './MainStorage' | ||
|
||
export const getCurrentChainId: () => ChainID = () => | ||
ChainStorage.get('chainId') || 31 | ||
MainStorage.get('chainId') || 31 | ||
|
||
export const setCurrentChainId = (chainId: ChainID) => | ||
ChainStorage.set('chainId', chainId) | ||
MainStorage.set('chainId', chainId) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters