hooks_rs::api

Function rollback

Source
pub fn rollback(msg: &[u8], error_code: i64) -> !
Expand description

Reject the originating transaction and discard any changes the hook made

ยงExample

rollback(b"encountered a problem", -1)