Function orml_utilities::simulate_execution

source ยท
pub fn simulate_execution<R>(
    f: impl FnOnce() -> Result<R, DispatchError>,
) -> Result<R, DispatchError>
Expand description

Simulate execution of the supplied function in a new storage transaction. Changes to storage performed by the supplied function are always discarded.