Skip to content

Commit

Permalink
Prevent heap pages changes
Browse files Browse the repository at this point in the history
  • Loading branch information
crystalin authored and Cem Eliguzel committed Sep 13, 2023
1 parent f60318f commit 37714ed
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions substrate/primitives/state-machine/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,7 @@ where
.flatten()
.ok_or("`:code` hash not found")?
.encode();
let heap_pages = self
.backend
.storage(sp_core::storage::well_known_keys::HEAP_PAGES)
.ok()
.flatten()
.and_then(|d| codec::Decode::decode(&mut &d[..]).ok());

Ok(RuntimeCode { code_fetcher: self, hash, heap_pages })
Ok(RuntimeCode { code_fetcher: self, hash, heap_pages: None })
}
}

0 comments on commit 37714ed

Please sign in to comment.