mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
chore:
- disable SideShift - minor fixes
This commit is contained in:
@@ -347,10 +347,10 @@ class AddressValidator extends TextValidator {
|
||||
pattern = '([1-9A-HJ-NP-Za-km-z]{90,200})|(@[\w\d.-]+)';
|
||||
default:
|
||||
if (type.tag == CryptoCurrency.eth.title) {
|
||||
pattern = '0x[0-9a-zA-Z]{42}';
|
||||
pattern = '0x[0-9a-zA-Z]+';
|
||||
}
|
||||
if (type.tag == CryptoCurrency.maticpoly.tag) {
|
||||
pattern = '0x[0-9a-zA-Z]{42}';
|
||||
pattern = '0x[0-9a-zA-Z]+';
|
||||
}
|
||||
if (type.tag == CryptoCurrency.sol.title) {
|
||||
pattern = '[1-9A-HJ-NP-Za-km-z]{43,44}';
|
||||
|
||||
@@ -137,10 +137,13 @@ class _RestoreOptionsBodyState extends State<_RestoreOptionsBody> {
|
||||
}
|
||||
|
||||
void _showQRScanError(BuildContext context, String error) {
|
||||
setState(() => isRestoring = false);
|
||||
if (mounted) {
|
||||
setState(() => isRestoring = false);
|
||||
}
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
showPopUp<void>(
|
||||
if (mounted) {
|
||||
showPopUp<void>(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertWithOneAction(
|
||||
@@ -149,6 +152,7 @@ class _RestoreOptionsBodyState extends State<_RestoreOptionsBody> {
|
||||
buttonText: S.of(context).ok,
|
||||
buttonAction: () => Navigator.of(context).pop());
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -212,7 +212,7 @@ abstract class ExchangeViewModelBase extends WalletChangeListenerViewModel with
|
||||
|
||||
List<ExchangeProvider> get _allProviders => [
|
||||
ChangeNowExchangeProvider(settingsStore: _settingsStore),
|
||||
SideShiftExchangeProvider(),
|
||||
// SideShiftExchangeProvider(),
|
||||
ChainflipExchangeProvider(tradesStore: trades),
|
||||
if (FeatureFlag.isExolixEnabled) ExolixExchangeProvider(),
|
||||
SwapTradeExchangeProvider(),
|
||||
|
||||
Reference in New Issue
Block a user