snark/user_command_verify_effectful/
snark_user_command_verify_effects.rs

1use redux::ActionMeta;
2
3use super::{SnarkUserCommandVerifyEffectfulAction, SnarkUserCommandVerifyService};
4
5impl SnarkUserCommandVerifyEffectfulAction {
6    pub fn effects<Store, S>(self, _: &ActionMeta, store: &mut Store)
7    where
8        Store: crate::SnarkStore<S>,
9        Store::Service: SnarkUserCommandVerifyService,
10    {
11        match self {
12            SnarkUserCommandVerifyEffectfulAction::Init { req_id, commands } => {
13                store.service().verify_init(req_id, commands);
14            }
15        }
16    }
17}