Trait LibRepo

Source
pub trait LibRepo {
    // Required method
    fn get_lib(&self, lib_id: LibId) -> Option<&Lib>;
}
Expand description

The trait providing access to all the VM code libraries used by the contract, in both operation verification or state access conditions.

Required Methods§

Source

fn get_lib(&self, lib_id: LibId) -> Option<&Lib>

Get a specific library with the provided id.

If the library is not known and this method returns None, but the library is called by the operation verification or state access script, the verification will fail with CallError::Script.

Implementors§