Function casper_contract::contract_api::runtime::revert[][src]

pub fn revert<T: Into<ApiError>>(error: T) -> !
Expand description

Stops execution of a contract and reverts execution effects with a given ApiError.

The provided ApiError is returned in the form of a numeric exit code to the caller via the deploy response.