diff --git a/core/consensus/aura/src/lib.rs b/core/consensus/aura/src/lib.rs index f22e20930c0fd..7c65661955a91 100644 --- a/core/consensus/aura/src/lib.rs +++ b/core/consensus/aura/src/lib.rs @@ -498,12 +498,12 @@ impl Verifier for AuraVerifier, compute_tx: bool, mut native_call: Option, -) -> Result<(NativeOrEncoded, B::Transaction, Option>), Box> +) -> Result<(NativeOrEncoded, Option, Option>), Box> where H: Hasher, Exec: CodeExecutor, @@ -469,7 +469,9 @@ where H::Out: Ord + HeapSizeOf, { let proving_backend = proving_backend::ProvingBackend::new(trie_backend); - let (result, _, _) = execute_using_consensus_failure_handler::, _, _>( + let (result, _, _) = execute_using_consensus_failure_handler:: + , _, _, NeverNativeValue, fn() -> NeverNativeValue> + ( &proving_backend, None, overlay, @@ -478,9 +480,10 @@ where call_data, native_when_possible(), false, + None, )?; let proof = proving_backend.extract_proof(); - Ok((result, proof)) + Ok((result.into_encoded(), proof)) } /// Check execution proof, generated by `prove_execution` call. @@ -514,7 +517,9 @@ where Exec: CodeExecutor, H::Out: Ord + HeapSizeOf, { - execute_using_consensus_failure_handler::, _, _>( + execute_using_consensus_failure_handler:: + , _, _, NeverNativeValue, fn() -> NeverNativeValue> + ( trie_backend, None, overlay, @@ -523,7 +528,8 @@ where call_data, native_when_possible(), false, - ).map(|(result, _, _)| result) + None, + ).map(|(result, _, _)| result.into_encoded()) } /// Generate storage read proof. diff --git a/core/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm b/core/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm index 3cb1f27ec95ae..000ab9b85f7a9 100644 Binary files a/core/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm and b/core/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm differ diff --git a/node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm b/node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm index 8873f54a16f68..52f4e8fcc2ff8 100644 Binary files a/node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm and b/node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm differ