Add proper Token contract

This commit is contained in:
2018-03-15 08:55:17 +01:00
parent 68fb8b2bee
commit f0211ff4c1
10 changed files with 130 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
var Registry = artifacts.require('./Registry.sol');
var Token = artifacts.require('./Token1.sol');
var Token = artifacts.require('./Token.sol');
module.exports = function(deployer) {
deployer.deploy(Token).then(function(token) {

View File

@@ -1,14 +0,0 @@
var Token = artifacts.require('./Token2.sol');
var Registry = artifacts.require('./upgradeable/Registry');
var UpgradeabilityProxy = artifacts.require('./upgradeable/UpgradeabilityProxy');
module.exports = function(deployer) {
deployer.deploy(Token).then(function(t) {
return Token.deployed();
}).then(function(token) {
Registry.deployed().then(function(registry) {
console.log('Token address: ', Token.address);
registry.addVersion('Token', Token.address);
});
})
};