fetch_wasm_code

Function fetch_wasm_code 

Source
pub async fn fetch_wasm_code<C: Config>(
    client: &OnlineClient<C>,
    rpc: &LegacyRpcMethods<C>,
    hash: &C::Hash,
) -> Result<Vec<u8>>
where C::Hash: AsRef<[u8]> + Display + IntoVisitor,
Expand description

Fetch the contract wasm code from the storage using the provided client and code hash.