Trait precompile_utils::solidity::revert::RevertExt
source · pub trait RevertExt {
// Required method
fn map_reason(self, f: impl FnOnce(RevertReason) -> RevertReason) -> Self;
}
Expand description
Additional functions for Revert and MayRevert.
Required Methods§
sourcefn map_reason(self, f: impl FnOnce(RevertReason) -> RevertReason) -> Self
fn map_reason(self, f: impl FnOnce(RevertReason) -> RevertReason) -> Self
Map the reason while keeping the same backtrace.
Object Safety§
This trait is not object safe.