Skip to content

Commit

Permalink
fix: Fix default protocol builder in ledger simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Aug 20, 2024
1 parent aa26c0a commit 559b174
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions radix-engine/src/updates/protocol_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,7 @@ impl ProtocolBuilder {
}

pub fn post_bootstrap_until(self, protocol_version: ProtocolVersion) -> ProtocolExecutor {
ProtocolExecutor::new(
Some(ProtocolVersion::EARLIEST),
protocol_version,
self.settings,
)
self.from_until(ProtocolVersion::EARLIEST, protocol_version)
}

pub fn from_until(
Expand Down
2 changes: 1 addition & 1 deletion scrypto-test/src/ledger_simulator/ledger_simulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl LedgerSimulatorBuilder<NoExtension, InMemorySubstateDatabase> {
custom_extension: NoExtension,
custom_database: InMemorySubstateDatabase::standard(),
protocol_executor: ProtocolBuilder::for_network(&NetworkDefinition::simulator())
.post_bootstrap_until(ProtocolVersion::LATEST),
.bootstrap_then_until(ProtocolVersion::LATEST),
with_kernel_trace: true,
with_receipt_substate_check: true,
}
Expand Down

0 comments on commit 559b174

Please sign in to comment.