Skip to content

Commit

Permalink
Fix error on migration
Browse files Browse the repository at this point in the history
  • Loading branch information
theofilis committed Jan 3, 2020
1 parent c382712 commit 68562b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion migrations/4_change_owner_migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ const PointsTokenStorageProxy = artifacts.require("PointsTokenStorageProxy");
module.exports = function (deployer, network, accounts) {
let loyalty, proxy;
deployer
.then((instance) => {
.then(() => {
return PointsTokenStorageProxy.deployed();
})
.then((instance) => {
return instance.address;
})
.then((address) => {
return LoyaltyPoints.at(address);
})
.then((proxy) => {
return proxy.transferOwnership('0x627306090abaB3A6e1400e9345bC60c78a8BEf57', { from: accounts[0] });
});
Expand Down

0 comments on commit 68562b2

Please sign in to comment.