Skip to content

Commit

Permalink
feat: include MerkleWrapper deployment in dev contracts migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Dobaczewski Imapp committed Jan 3, 2020
1 parent 65f8ce3 commit 8fb0ad2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plasma_framework/migrations/8_deploy_dev_contracts.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
const PaymentEip712LibMock = artifacts.require('PaymentEip712LibMock');
const MerkleWrapper = artifacts.require('MerkleWrapper');
const ERC20Mintable = artifacts.require('ERC20Mintable');

module.exports = function (deployer) {
const deployTestContracts = process.env.DEPLOY_TEST_CONTRACTS || false;
if (deployTestContracts) {
deployer.deploy(PaymentEip712LibMock);
deployer.deploy(MerkleWrapper);
deployer.deploy(ERC20Mintable);
}
};
3 changes: 3 additions & 0 deletions plasma_framework/migrations/9_output_results.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const config = require('../config.js');

const PlasmaFramework = artifacts.require('PlasmaFramework');
const PaymentEip712LibMock = artifacts.require('PaymentEip712LibMock');
const MerkleWrapper = artifacts.require('MerkleWrapper');
const ERC20Mintable = artifacts.require('ERC20Mintable');
module.exports = async (
deployer,
Expand All @@ -30,6 +31,8 @@ module.exports = async (
if (deployTestContracts) {
const paymentEip712LibMock = await PaymentEip712LibMock.deployed();
contracts.paymentEip712LibMock = `${paymentEip712LibMock.address}`.toLowerCase();
const merkleWrapper = await MerkleWrapper.deployed();
contracts.merkleWrapper = `${merkleWrapper.address}`.toLowerCase();
const erc20Mintable = await ERC20Mintable.deployed();
contracts.erc20Mintable = `${erc20Mintable.address}`.toLowerCase();
}
Expand Down

0 comments on commit 8fb0ad2

Please sign in to comment.