Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Add old MKR check to runAllChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbennett committed Dec 10, 2019
1 parent d3bf1d6 commit 231f6c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/dai-plugin-migrations/src/MigrationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import GlobalSettlementDaiRedeemer from './migrations/GlobalSettlementDaiRedeeme
import SaiToDai from './migrations/SaiToDai';
import MkrRedeemer from './migrations/MkrRedeemer';
import DaiToSai from './migrations/DaiToSai';
const { SINGLE_TO_MULTI_CDP, SAI_TO_DAI, DAI_TO_SAI } = Migrations;
const { SINGLE_TO_MULTI_CDP, SAI_TO_DAI, DAI_TO_SAI, MKR_REDEEMER } = Migrations;

const migrations = {
[SINGLE_TO_MULTI_CDP]: SingleToMultiCdp,
Expand Down Expand Up @@ -48,7 +48,8 @@ export default class MigrationService extends PublicService {
SINGLE_TO_MULTI_CDP
).check(),
[SAI_TO_DAI]: await this.getMigration(SAI_TO_DAI).check(),
[DAI_TO_SAI]: await this.getMigration(DAI_TO_SAI).check()
[DAI_TO_SAI]: await this.getMigration(DAI_TO_SAI).check(),
[MKR_REDEEMER]: await this.getMigration(MKR_REDEEMER).check()
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ test('runAllChecks', async () => {
expect(result).toEqual({
[Migrations.SAI_TO_DAI]: expect.anything(),
[Migrations.DAI_TO_SAI]: expect.anything(),
[Migrations.MKR_REDEEMER]: expect.anything(),
[Migrations.SINGLE_TO_MULTI_CDP]: {}
});
expect(result[Migrations.SAI_TO_DAI].eq(0)).toBeTruthy();
Expand Down

0 comments on commit 231f6c3

Please sign in to comment.