pub async fn replace_str(
pem_identity_path: &str,
icsp_canister_id_text: &str,
file_key: &str,
data: &str,
is_http_open: bool,
)
Expand description
Replace the value str corresponding to the key
ยงExamples
use isp_sdk::icsp;
pub async fn replace_str() {
icsp::replace_str(
"identities/identity.pem",
"4radi-oqaaa-aaaan-qapwa-cai",
"8225a448-7eff-4162-bb52-313884bbde4e",
"test_isp_sdk_replace_str",
true,
)
.await;
println!("replace_str complete ");
}