Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dup code #74

Open
chevdor opened this issue Jun 19, 2023 · 0 comments
Open

Remove dup code #74

chevdor opened this issue Jun 19, 2023 · 0 comments

Comments

@chevdor
Copy link
Owner

chevdor commented Jun 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant