Skip to content

Commit

Permalink
Merge pull request #5304 from EdgeApp/matthew/no-non-segwit
Browse files Browse the repository at this point in the history
Remove legacy non-segwit wallets from new account wallet selection scene
  • Loading branch information
peachbits authored Oct 11, 2024
2 parents 7a8d752 + 420b5db commit 015481d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- changed: Prevent exchange rate fluctuations from restarting transaction list stream
- changed: Call `saveTx` after signing or broadcasting transactions from WalletConnect
- changed: Navigate to wallet list after restoring wallets
- changed: Remove legacy non-segwit wallets from new account wallet selection scene
- fixed: Use account default fiat for transaction fee display in `SweepPrivateKeyCalculateFeeScene`

## 4.15.0
Expand Down
2 changes: 1 addition & 1 deletion src/actions/LoginActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function initializeAccount(navigation: NavigationBase, account: EdgeAccou
screen: 'edgeAppStack',
params: {
screen: 'createWalletSelectCryptoNewAccount',
params: { newAccountFlow, defaultSelection }
params: { newAccountFlow, defaultSelection, disableLegacy: true }
}
})

Expand Down
1 change: 1 addition & 0 deletions src/actions/WalletListMenuActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export function walletListMenuAction(
case 'split': {
return async () => {
navigation.navigate('createWalletSelectCrypto', {
disableLegacy: true,
splitPluginIds,
splitSourceWalletId: walletId
})
Expand Down
5 changes: 3 additions & 2 deletions src/components/scenes/CreateWalletSelectCryptoScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { WalletListCurrencyRow } from '../themed/WalletListCurrencyRow'
export interface CreateWalletSelectCryptoParams {
newAccountFlow?: (navigation: NavigationProp<'createWalletSelectCrypto' | 'createWalletSelectCryptoNewAccount'>, items: WalletCreateItem[]) => Promise<void>
defaultSelection?: EdgeAsset[]
disableLegacy?: boolean
splitPluginIds?: string[]
splitSourceWalletId?: string
}
Expand All @@ -46,7 +47,7 @@ interface Props extends EdgeSceneProps<'createWalletSelectCrypto' | 'createWalle

const CreateWalletSelectCryptoComponent = (props: Props) => {
const { navigation, route } = props
const { newAccountFlow, defaultSelection = [], splitPluginIds = [], splitSourceWalletId } = route.params
const { newAccountFlow, defaultSelection = [], disableLegacy = false, splitPluginIds = [], splitSourceWalletId } = route.params

const dispatch = useDispatch()
const theme = useTheme()
Expand All @@ -67,7 +68,7 @@ const CreateWalletSelectCryptoComponent = (props: Props) => {
const [searchTerm, setSearchTerm] = React.useState('')

const allowedAssets = splitPluginIds.length > 0 ? splitPluginIds.map(pluginId => ({ pluginId, tokenId: null })) : undefined
const createList = getCreateWalletList(account, { allowedAssets, disableLegacy: splitPluginIds.length > 0 })
const createList = getCreateWalletList(account, { allowedAssets, disableLegacy })

const createWalletList = React.useMemo(() => {
const preselectedList: WalletCreateItem[] = []
Expand Down

0 comments on commit 015481d

Please sign in to comment.