Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add migration to deploy master minter #284

Merged
merged 2 commits into from
Apr 9, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions migrations/3_deploy_master_minter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var MasterMinter = artifacts.require('./MasterMinter.sol');

module.exports = function(deployer, network, accounts) {

var minterOwner = '0x496aacE5EEF1f4f505B67Af45de6Ba992785c124';
var fiatToken = '0x07865c6e87b9f70255377e024ace6630c1eaa37f';

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not the real addresses. Is this intentional?

console.log("deploying MasterMinter for fiat token at " + fiatToken);
deployer.deploy(MasterMinter, fiatToken)
.then( function(mm) {
console.log("master minter deployed at " + mm.address)
console.log("reassigning owner to " + minterOwner);
return mm.transferOwnership(minterOwner);
})
.then(function(ownerTransferred) {
console.log("All done.")
});
}