File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit/viewmodels Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -713,7 +713,7 @@ class AppViewModel @Inject constructor(
713713
714714 when (val decoded = scanResult.getOrNull()) {
715715 is Scanner .Lightning -> validateLightningInvoice(decoded.invoice)
716- is Scanner .OnChain -> validateOnchainAddress (decoded.invoice)
716+ is Scanner .OnChain -> validateOnChainAddress (decoded.invoice)
717717 else -> _sendUiState .update { it.copy(isAddressInputValid = true ) }
718718 }
719719 }
@@ -743,7 +743,7 @@ class AppViewModel @Inject constructor(
743743 _sendUiState .update { it.copy(isAddressInputValid = true ) }
744744 }
745745
746- private fun validateOnchainAddress (invoice : OnChainInvoice ) {
746+ private fun validateOnChainAddress (invoice : OnChainInvoice ) {
747747 // Check network mismatch
748748 val addressNetwork = NetworkValidationHelper .getAddressNetwork(invoice.address)
749749 if (NetworkValidationHelper .isNetworkMismatch(addressNetwork, Env .network)) {
You can’t perform that action at this time.
0 commit comments