Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-savu committed Oct 17, 2023
1 parent a69aa47 commit 80a56f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion rust/agents/relayer/src/msg/metadata/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ impl BaseMetadataBuilder {
.origin_validator_announce
.get_announced_storage_locations(validators)
.await?;
println!("storage_locations: {:?}", storage_locations);

// Only use the most recently announced location for now.
let mut checkpoint_syncers: HashMap<H160, Arc<dyn CheckpointSyncer>> = HashMap::new();
Expand Down
2 changes: 1 addition & 1 deletion rust/utils/run-locally/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ fn main() -> ExitCode {

// let solana_checkpoint_path = Path::new(SOLANA_CHECKPOINT_LOCATION);
// fs::remove_dir_all(solana_checkpoint_path).unwrap_or_default();
let checkpoints_dirs: Vec<DynPath> = (0..VALIDATOR_COUNT)
let checkpoints_dirs: Vec<DynPath> = (0..VALIDATOR_COUNT - 1)
.map(|_| Box::new(tempdir().unwrap()) as DynPath)
// .chain([Box::new(solana_checkpoint_path) as DynPath])
.collect();
Expand Down
13 changes: 7 additions & 6 deletions typescript/sdk/src/ism/HyperlaneIsmFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ export class HyperlaneIsmFactory extends HyperlaneApp<FactoryFactories> {
config,
this.multiProvider.getSignerOrProvider(chain),
);
} else if (
}

if (
config.type === ModuleType.MERKLE_ROOT_MULTISIG ||
config.type === ModuleType.MESSAGE_ID_MULTISIG
) {
Expand Down Expand Up @@ -112,11 +114,10 @@ export class HyperlaneIsmFactory extends HyperlaneApp<FactoryFactories> {
this.deployedIsms[chain] = {};
}

if (!!origin && !this.deployedIsms[chain][origin]) {
this.deployedIsms[chain][origin] = {};
}

if (origin) {
if (!!origin) {
if (!this.deployedIsms[chain][origin]) {
this.deployedIsms[chain][origin] = {};
}
this.deployedIsms[chain][origin][moduleType] = contract;
} else {
this.deployedIsms[chain][moduleType] = contract;
Expand Down

0 comments on commit 80a56f7

Please sign in to comment.