pub fn exec_cell(
code_hash: &[u8],
hash_type: ScriptHashType,
argv: &[&CStr],
) -> Result<Infallible, SysError>Available on crate feature
ckb-types only.Expand description
Exec a cell in cell dep.
§Arguments
code_hash- the code hash to search cell in cell deps.hash_type- the hash type to search cell in cell deps.argv- subprocess arguments. In most cases two types of parameters can be accepted: - if the parameter you want to pass can be represented by a string: - CStr::from_bytes_with_nul(b“arg0\0“).unwrap(); - CString::new(“arg0”).unwrap().as_c_str(); - if you want to pass a piece of bytes data, you may encode it to hexadecimal string or other format: - high_level::encode_hex(&vec![0xff, 0xfe, 0xfd]);