org.plasmalabs.node.services.FetchTransactionResValidator.scala Maven / Gradle / Ivy
The newest version!
package org.plasmalabs.node.services
object FetchTransactionResValidator extends scalapb.validate.Validator[org.plasmalabs.node.services.FetchTransactionRes] {
def validate(input: org.plasmalabs.node.services.FetchTransactionRes): scalapb.validate.Result =
scalapb.validate.Result.optional(input.transaction) { _value =>
org.plasmalabs.sdk.models.transaction.IoTransactionValidator.validate(_value)
}
}