Skip to content

Instantly share code, notes, and snippets.

@andytudhope
Created October 28, 2017 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andytudhope/aaab02478bc9a7328804eaf9a8eed5d0 to your computer and use it in GitHub Desktop.
Save andytudhope/aaab02478bc9a7328804eaf9a8eed5d0 to your computer and use it in GitHub Desktop.
module.exports = function(deployer) {
deployer.deploy(MiniMeTokenFactory)
.then(() => {
return MiniMeTokenFactory.deployed()
.then(f => {
return SCB.new(f.address)
})
.then(t => {
token = t
console.log('SCT:', token.address)
return SCBController.new(token.address)
})
.then(c => {
controller = c;
console.log('Controller:', c.address)
token.changeController(c.address).then((res) => {
console.log('Changed controller!', res.tx);
});
return MultiSig.new([Andy, Ben, Jonny], 2);
})
.then(ms => {
console.log('Multisig:', ms.address);
})
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment