INNER CODE UNIT · Rust
vm_call_fee
Quantova/QCore.js · src/lib.rs:206
pub fn vm_call_fee(transfer_fee: &str, meter_limit: u64) -> Result<String, JsError> {
Ok(qcore::vm_call_fee(whole(transfer_fee, "transfer fee")?, meter_limit).to_string())
}
#[wasm_bindgen(js_name = checkValidUntil)]
pub fn check_valid_until(valid_until: u64, head: u64) -> Result<(), JsError> {
qcore::check_valid_until(valid_until, head).map_err(|e| JsError::new(&e))
}
#[wasm_bindgen(js_name = nonceSlotKey)]
pub fn nonce_slot_key(signer_hex: &str) -> Result<String, JsError> {
Ok(qcore::json::to_hex(&qcore::contract::nonce_slot_key(
&addr32(signer_hex)?,
)))
}
#[wasm_bindgen(js_name = scalarSlotKey)]
pub fn scalar_slot_key(slot: u64) -> String {