Skip to content

Commit 6f9aa72

Browse files
committed
fix: align onchain paykit
1 parent 2d7d9ef commit 6f9aa72

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/src/main/java/to/bitkit/repositories/PublicPaykitRepo.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@ class PublicPaykitRepo @Inject constructor(
243243
-> {
244244
val scan = coreService.decode(endpoint.paymentRequest) as? Scanner.OnChain ?: return@runCatching false
245245
val address = validateBitcoinAddress(scan.invoice.address)
246-
onchainMethodId(scan.invoice.address) == endpoint.methodId &&
247-
!NetworkValidationHelper.isNetworkMismatch(address.network.toLdkNetwork(), Env.network)
246+
!NetworkValidationHelper.isNetworkMismatch(address.network.toLdkNetwork(), Env.network)
248247
}
249248
}
250249
}.getOrDefault(false)

0 commit comments

Comments
 (0)