Skip to content

Commit

Permalink
fix: working migration
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaShWoof committed Jul 11, 2024
1 parent 36c789a commit 1ffd201
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default migration('1718352598_add_ezeth_as_collateral', {
},

async enacted(): Promise<boolean> {
return false;
return true;
},

async verify(deploymentManager: DeploymentManager) {
Expand Down
4 changes: 2 additions & 2 deletions 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 All @@ -22,7 +22,7 @@ export class MigrationConstraint<T extends CometContext> implements StaticConstr
async solve(world: World) {
const label = `[${world.base.name}] {MigrationConstraint}`;
const solutions: Solution<T>[] = [];
const migrationPaths = [...subsets(await getMigrations(world))];
const migrationPaths = [await getMigrations(world)];

for (const migrationList of migrationPaths) {
if (migrationList.length == 0 && migrationPaths.length > 1) {
Expand Down
6 changes: 0 additions & 6 deletions scenario/constraints/ProposalConstraint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ export class ProposalConstraint<T extends CometContext> implements StaticConstra
);
}

// temporary hack to skip proposal 259
if (proposal.id.eq(259)) {
console.log('Skipping proposal 259');
continue;
}

try {
// Execute the proposal
debug(`${label} Processing pending proposal ${proposal.id}`);
Expand Down

0 comments on commit 1ffd201

Please sign in to comment.