pub fn with_externalities_safe<F, U>(
ext: &mut dyn Externalities,
) -> Result<U> where
F: UnwindSafe + FnOnce() -> U,
Set up the externalities and safe calling environment to execute runtime calls.
If the inner closure panics, it will be caught and return an error.