+
Skip to content

Remove dup code #74

Open
Open
@chevdor

Description

@chevdor

/// 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载