From 2804b56d78476bd8e40d7d6422a8094fe17f5c22 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 3 Dec 2021 19:50:23 +0100 Subject: [PATCH] No longer include :code and :heappages in execution proofs (#10419) * No longer include :code and :heap_pages in execution proofs * Oops, forgot the line * Rustfmt --- substrate/client/service/src/client/client.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/substrate/client/service/src/client/client.rs b/substrate/client/service/src/client/client.rs index b46c6b99b9..833d8b7bc2 100644 --- a/substrate/client/service/src/client/client.rs +++ b/substrate/client/service/src/client/client.rs @@ -1085,18 +1085,7 @@ where method: &str, call_data: &[u8], ) -> sp_blockchain::Result<(Vec, StorageProof)> { - // Make sure we include the `:code` and `:heap_pages` in the execution proof to be - // backwards compatible. - // - // TODO: Remove when solved: https://github.com/paritytech/substrate/issues/5047 - let code_proof = self.read_proof( - id, - &mut [well_known_keys::CODE, well_known_keys::HEAP_PAGES].iter().map(|v| *v), - )?; - - self.executor - .prove_execution(id, method, call_data) - .map(|(r, p)| (r, StorageProof::merge(vec![p, code_proof]))) + self.executor.prove_execution(id, method, call_data) } fn read_proof_collection(