pub fn error_to_invalid<T: Config>(error: Error<T>) -> InvalidTransactionExpand 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>) -> InvalidTransactionconvert an Error to a custom InvalidTransaction with the inner code being the error number.