coal_api::loaders

Function load_asset

source
pub fn load_asset<'a, 'info>(
    info: &'a AccountInfo<'info>,
) -> Result<(f64, u64), ProgramError>
Expand description

Errors if:

  • Data is empty.
  • Update authority is not the forge pickaxe collection.
  • Attributes plugin is not present.
  • Durability attribute is not present.
  • Multiplier attribute is not present.