Function load_cell_lock

Source
pub fn load_cell_lock(index: usize, source: Source) -> Result<Script, SysError>
Available on crate feature ckb-types only.
Expand description

Load cell lock

Return the lock script or a syscall error

§Arguments

  • index - index
  • source - source

§Example

let lock = load_cell_lock(index, source).unwrap();