pub trait MessageValidator {
    // Required method
    fn validate(&self, msgs: &[Message]) -> Result<()>;
}
Expand description

A trait that validates messages for validity. It can be used for gas accounting.

Required Methods§

source

fn validate(&self, msgs: &[Message]) -> Result<()>

Implementors§

source§

impl<F> MessageValidator for F
where F: Fn(&[Message]) -> Result<()>,