Skip to content

Commit

Permalink
Prevent heap pages changes
Browse files Browse the repository at this point in the history
  • Loading branch information
crystalin committed Apr 5, 2023
1 parent 76fed9b commit c27b02e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions primitives/state-machine/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,13 +444,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 c27b02e

Please sign in to comment.