@ -14,7 +14,7 @@ public struct EthereumAddressRule<T: Equatable>: RuleType {
public func isValid(value: T?) -> ValidationError? {
if let str = value as? String {
return CryptoAddressValidator.isValidAddress(str) ? validationError : nil
return !CryptoAddressValidator.isValidAddress(str) ? validationError : nil
}
return value != nil ? nil : validationError