logo
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.