Struct fuels_contract::predicate::Predicate
source · pub struct Predicate { /* private fields */ }
Implementations§
source§impl Predicate
impl Predicate
pub fn new(code: Vec<u8>) -> Self
pub fn load_from(file_path: &str) -> Result<Self, Error>
pub fn address(&self) -> &Bech32Address
pub fn code(&self) -> Vec<u8> ⓘ
sourcepub fn encode_data<D: Tokenizable>(&self, data: D) -> Result<Vec<u8>, Error>
pub fn encode_data<D: Tokenizable>(&self, data: D) -> Result<Vec<u8>, Error>
Encode the predicate data with the given arguments.