From eab2bd4283481bb857a2f3fb198dc0bb02bc412a Mon Sep 17 00:00:00 2001 From: Ethan Date: Tue, 10 Dec 2019 20:01:04 -0500 Subject: [PATCH] Remove network default for old mkr config --- packages/dai-plugin-migrations/src/index.js | 2 +- packages/dai-plugin-migrations/src/migrations/MkrRedeemer.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/dai-plugin-migrations/src/index.js b/packages/dai-plugin-migrations/src/index.js index 205cbcdec..05ca59802 100644 --- a/packages/dai-plugin-migrations/src/index.js +++ b/packages/dai-plugin-migrations/src/index.js @@ -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'), diff --git a/packages/dai-plugin-migrations/src/migrations/MkrRedeemer.js b/packages/dai-plugin-migrations/src/migrations/MkrRedeemer.js index 93096629a..ab3dc2230 100644 --- a/packages/dai-plugin-migrations/src/migrations/MkrRedeemer.js +++ b/packages/dai-plugin-migrations/src/migrations/MkrRedeemer.js @@ -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();