pub fn hook_account() -> Result<[u8; 20]>
Expand description
Retreive the 20 byte Account ID the Hook is executing on
ยงExample
let hook_account = match hook_account() {
Ok(acc) => acc,
Err(err) => {
rollback(b"hook_account.rs: hook_account() failed.", err.into());
}
};
accept(&hook_account, 0);