contracts/migrations/1520798600_token.js
bumi 85ae154860 Import/Migrate existing kredits contracts
This brings in the current state of the kredits contracts incl. the
Contributors, Operator and Token contract.
2018-03-31 16:18:17 +02:00

16 lines
453 B
JavaScript

var Registry = artifacts.require('./Registry.sol');
var Token = artifacts.require('./Token.sol');
module.exports = function(deployer) {
deployer.deploy(Token).then(function(token) {
console.log('Registry address: ', Registry.address);
console.log('Token address: ', Token.address);
Registry.deployed().then(function(registry) {
registry.addVersion('Token', Token.address);
registry.createProxy('Token', 1);
});
});
};