Skip to content

Commit

Permalink
fix: linter and test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaShWoof committed Jan 29, 2025
1 parent 13a9d5e commit 3bd402a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion plugins/deployment_manager/Migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ export async function loadMigration(path: string): Promise<Migration<any>> {
export async function loadMigrations(paths: string[]): Promise<Migration<any>[]> {
const migrations = [];
for (const path of paths) {
if(!await (await loadMigration(path)).actions.enacted(undefined, undefined))
const enacted = (await loadMigration(path)).actions?.enacted;
if(!enacted){
migrations.push(await loadMigration(path));
continue;
}
if(!await enacted(undefined, undefined))
migrations.push(await loadMigration(path));
}
return migrations;
Expand Down
2 changes: 1 addition & 1 deletion scenario/constraints/MigrationConstraint.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { StaticConstraint, Solution, World, debug } from '../../plugins/scenario';
import { CometContext, MigrationData } from '../context/CometContext';
import { Migration, loadMigrations, Actions } from '../../plugins/deployment_manager/Migration';
import { modifiedPaths, subsets } from '../utils';
import { modifiedPaths } from '../utils';
import { DeploymentManager } from '../../plugins/deployment_manager';
import { impersonateAddress } from '../../plugins/scenario/utils';
import { exp } from '../../test/helpers';
Expand Down

0 comments on commit 3bd402a

Please sign in to comment.