fix: block wrongly parsed addresses (#2656)

* fix: block wrongly parsed addresses

* fix: move parsed address check into handlePaymentFlow method

* fix: Handle QR URLs separately for pay anything flow
This commit is contained in:
David Adegoke
2025-11-18 20:26:06 +01:00
committed by GitHub
parent 5ed8e58be2
commit 7f757a92a0
2 changed files with 3 additions and 3 deletions
@@ -45,7 +45,7 @@ abstract class PaymentViewModelBase with Store {
return PaymentFlowResult.incompatible('Unable to detect address type');
}
if (_isEVMAddress(detectionResult.address)) {
if (!addressData.contains(':') && _isEVMAddress(detectionResult.address)) {
return PaymentFlowResult.evmNetworkSelection(detectionResult);
}