with_state

Function with_state 

Source
pub fn with_state<T: ChainInfo, R>(
    client: Arc<FullClientFor<T>>,
    id: Option<<T::Block as BlockT>::Hash>,
    closure: impl FnOnce() -> R,
) -> R
Expand description

Runs the given closure in an externalities provided environment, over the blockchain state