Function precompile_util_solidity::error
source · pub fn error<T: Into<Cow<'static, str>>>(text: T) -> PrecompileFailure
Expand description
Return an error with provided (static) text.
Using the revert
function of Gasometer
is preferred as erroring
consumed all the gas limit and the error message is not easily
retrievable.