Skip to content

Commit

Permalink
fix view based marketplace test
Browse files Browse the repository at this point in the history
  • Loading branch information
tbro committed Sep 10, 2024
1 parent 77258cd commit 603436a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions sequencer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,18 +641,15 @@ pub mod testing {
}

pub fn upgrades(mut self, upgrades: BTreeMap<Version, Upgrade>) -> Self {
for key in upgrades.keys() {
let upgrade = upgrades.get(key).unwrap();
upgrade.set_hotshot_config_parameters(&mut self.config)
}
self.upgrades = upgrades;
self
}

pub fn build(mut self) -> TestConfig<NUM_NODES> {
if let Some(upgrade) = self
.upgrades
.get(&<MockSequencerVersions as Versions>::Upgrade::VERSION)
{
upgrade.set_hotshot_config_parameters(&mut self.config)
}

pub fn build(self) -> TestConfig<NUM_NODES> {
TestConfig {
config: self.config,
priv_keys: self.priv_keys,
Expand Down

0 comments on commit 603436a

Please sign in to comment.