Updated on 2026-08-14
This commit is contained in:
parent
994c9f89f0
commit
db1bf3e135
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ internal class AddressPayIdMiddleware {
|
|||
|
||||
private fun isValidBlockchainAddressAndNotTheSameAsWallet(wallet: Wallet, address: String): Error? {
|
||||
return if (wallet.blockchain.validateAddress(address)) {
|
||||
if (wallet.address != address) {
|
||||
if (wallet.addresses.all { it.value != address } ) {
|
||||
null
|
||||
} else {
|
||||
Error.ADDRESS_SAME_AS_WALLET
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue