pub fn with_transaction<T, E>(f: impl FnOnce() -> Result<T, E>) -> Result<T, E>where E: From<DispatchError>,
Similar to #[transactional]