mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
Cw 1118 silent payment fixes (#2373)
* fix: hive box error * fix: address validator * fix: guarantee save on sp scanned * fix: too many saves * feat: network based address validation * fix: sp testnet * feat: ltc validator * fix: use general sp regex on address getter and remove print
This commit is contained in:
@@ -736,8 +736,7 @@ class SendPage extends BasePage {
|
||||
currentTheme: currentTheme,
|
||||
footerType: FooterType.singleActionButton,
|
||||
titleText: S.of(context).proceed_on_device,
|
||||
contentImage:
|
||||
'assets/images/hardware_wallet/ledger_nano_x.png',
|
||||
contentImage: 'assets/images/hardware_wallet/ledger_nano_x.png',
|
||||
contentImageColor: Theme.of(context).colorScheme.onSurface,
|
||||
content: S.of(context).proceed_on_device_description,
|
||||
singleActionButtonText: S.of(context).cancel,
|
||||
@@ -810,7 +809,8 @@ class SendPage extends BasePage {
|
||||
bool isRegularElectrumAddress(String address) {
|
||||
final supportedTypes = [CryptoCurrency.btc, CryptoCurrency.ltc, CryptoCurrency.bch];
|
||||
final excludedPatterns = [
|
||||
RegExp(AddressValidator.silentPaymentAddressPattern),
|
||||
RegExp(AddressValidator.silentPaymentAddressPatternMainnet),
|
||||
RegExp(AddressValidator.silentPaymentAddressPatternTestnet),
|
||||
RegExp(AddressValidator.mWebAddressPattern)
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user