Added isMe() in adress extension

This commit is contained in:
Christophe Deschamps 2022-06-16 17:26:22 +02:00
parent e7f3e840ce
commit f86064d9b0

View file

@ -52,4 +52,11 @@ extension Address {
return FastAddressBook.getContactWith(getCobject)
}
func isMe() -> Bool {
guard let accountAddress = Core.get().defaultAccount?.params?.identityAddress else {
return false
}
return weakEqual(address2: accountAddress)
}
}