mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Use wasm-builder from git (#3354)
* Use wasm-builder from git This brings new features like compressed runtimes out of the box. * chore: update wasm builder dep. from 3.0.0 to master * Fix tests * Update node/core/pvf/tests/it/main.rs Co-authored-by: Sergei Shulepov <sergei@parity.io> Co-authored-by: chevdor <chevdor@gmail.com> Co-authored-by: Sergei Shulepov <sergei@parity.io>
This commit is contained in:
@@ -31,7 +31,9 @@ pub fn validate_candidate(
|
||||
) -> Result<Vec<u8>, Box<dyn std::error::Error>> {
|
||||
use crate::executor_intf::{prevalidate, prepare, execute, TaskExecutor};
|
||||
|
||||
let blob = prevalidate(code)?;
|
||||
let code = sp_maybe_compressed_blob::decompress(code, 10 * 1024 * 1024).expect("Decompressing code failed");
|
||||
|
||||
let blob = prevalidate(&*code)?;
|
||||
let artifact = prepare(blob)?;
|
||||
let executor = TaskExecutor::new()?;
|
||||
let result = unsafe {
|
||||
|
||||
Reference in New Issue
Block a user