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

Commit

Permalink
Remove network default for old mkr config
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbennett committed Dec 11, 2019
1 parent cfc9d71 commit eab2bd4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion packages/dai-plugin-migrations/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function overrideContractAddresses(network, addressOverrides, contracts) {
export const MDAI_1 = createCurrency('MDAI_1');

export default {
addConfig: (_, { network = 'testnet', addressOverrides } = {}) => {
addConfig: (_, { network, addressOverrides } = {}) => {
const oldMkrData = {
currency: OLD_MKR,
abi: require('../contracts/abis/ERC20.json'),
Expand Down
5 changes: 0 additions & 5 deletions packages/dai-plugin-migrations/src/migrations/MkrRedeemer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ export default class MkrRedeemer {
return this;
}

// async check() {
// const balance = await this.oldMkrBalance();
// return balance.gt(0);
// }

async check() {
const oldMkr = this._manager.get('token').getToken('OLD_MKR');
return oldMkr.balance();
Expand Down

0 comments on commit eab2bd4

Please sign in to comment.