Skip to content

Commit

Permalink
[replay] Allow local override of framework
Browse files Browse the repository at this point in the history
  • Loading branch information
tzakian committed Oct 24, 2024
1 parent e0b51bc commit 8ae47b7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/sui-replay/src/replay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,13 @@ impl LocalExec {
objs: Vec<ObjectID>,
protocol_version: u64,
) -> Result<Vec<Object>, ReplayEngineError> {
let syst_packages = self.system_package_versions_for_protocol_version(protocol_version)?;
let syst_packages_objs = self.multi_download(&syst_packages).await?;
let syst_packages_objs = if self.protocol_version.is_some_and(|i| i < 0) {
BuiltInFramework::genesis_objects().collect()
} else {
let syst_packages =
self.system_package_versions_for_protocol_version(protocol_version)?;
self.multi_download(&syst_packages).await?
};

// Download latest version of all packages that are not system packages
// This is okay since the versions can never change
Expand Down

0 comments on commit 8ae47b7

Please sign in to comment.