pub fn error_to_invalid<T: Config>(error: Error<T>) -> InvalidTransaction
Expand description
convert an Error to a custom InvalidTransaction with the inner code being the error number.
pub fn error_to_invalid<T: Config>(error: Error<T>) -> InvalidTransaction
convert an Error to a custom InvalidTransaction with the inner code being the error number.