This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix: legacy storage keys * Use CHAIN_ID
- Loading branch information
Showing
4 changed files
with
89 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { getStoragePrefix } from '..' | ||
|
||
describe('getStoragePrefix', () => { | ||
it('saves a stringified value', () => { | ||
expect(getStoragePrefix('137')).toBe('_immortal|v2_POLYGON__') | ||
expect(getStoragePrefix('4')).toBe('_immortal|v2_RINKEBY__') | ||
expect(getStoragePrefix('1')).toBe('_immortal|v2_MAINNET__') | ||
expect(getStoragePrefix('100')).toBe('_immortal|v2_XDAI__') | ||
expect(getStoragePrefix('246')).toBe('_immortal|v2_ENERGY_WEB_CHAIN__') | ||
expect(getStoragePrefix('9358392457')).toBe('_immortal|v2_9358392457__') | ||
expect(getStoragePrefix()).toBe('_immortal|v2_RINKEBY__') | ||
}) | ||
}) |
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