-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
subwasm/libs/substrate-runtime-proposal-hash/src/lib.rs
Lines 57 to 71 in f601a37
/// Calculate the proposal hash | |
/// | |
/// # Arguments | |
/// * `wasm_blob` - The WASM blob | |
/// # Returns | |
/// * `CalllHash` - The hash of the proposal as calculated on chain | |
/// @deprecated | |
pub fn get_proposal_hash(wasm_blob: &[u8]) -> Result<CalllHash> { | |
get_call_hash(PREFIX_SYSTEM_SETCODE, wasm_blob) | |
} | |
/// This function replaces the deprecated `get_proposal_hash` | |
pub fn get_system_setcode(wasm_blob: &[u8]) -> Result<CalllHash> { | |
get_call_hash(PREFIX_SYSTEM_SETCODE, wasm_blob) | |
} |
Metadata
Metadata
Assignees
Labels
No labels