Skip to content

Commit

Permalink
Fix: rm Rinkeby from the migration script (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored Nov 7, 2022
1 parent 5e935d4 commit 11a5f2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/services/ls-migration/addedSafes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ const IMMORTAL_PREFIX = '_immortal|v2_'

const CHAIN_PREFIXES: Record<string, string> = {
'1': 'MAINNET',
'4': 'RINKEBY',
'56': 'BSC',
'100': 'XDAI',
'137': 'POLYGON',
'246': 'ENERGY_WEB_CHAIN',
'42161': 'ARBITRUM',
'73799': 'VOLTA',
}
const ALL_CHAINS = ['1', '100', '137', '56', '246', '42161', '1313161554', '43114', '10', '5', '4', '73799']
const ALL_CHAINS = ['1', '100', '137', '56', '246', '42161', '1313161554', '43114', '10', '5', '73799']

const OLD_LS_KEY = '__SAFES'

Expand Down
6 changes: 3 additions & 3 deletions src/services/ls-migration/tests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ describe('Local storage migration', () => {
SAFE__addressBook: JSON.stringify([
{ address: '0x123', name: 'Alice', chainId: '1' },
{ address: '0x456', name: 'Bob', chainId: '1' },
{ address: '0x789', name: 'Charlie', chainId: '4' },
{ address: '0xabc', name: 'Dave', chainId: '4' },
{ address: '0x789', name: 'Charlie', chainId: '5' },
{ address: '0xabc', name: 'Dave', chainId: '5' },
]),
}

Expand All @@ -22,7 +22,7 @@ describe('Local storage migration', () => {
'0x123': 'Alice',
'0x456': 'Bob',
},
'4': {
'5': {
'0x789': 'Charlie',
'0xabc': 'Dave',
},
Expand Down

0 comments on commit 11a5f2a

Please sign in to comment.