pub fn revert(message: impl AsRef<[u8]>) -> PrecompileFailure
Expand description

Revert the execution, making the user pay for the the currently recorded cost. It is better to revert instead of error as erroring consumes the entire gas limit, and revert returns an error message to the calling contract.