Deploy the contract with the designated owner (#1161)

* Deploy the contract with the designated owner

* Fixed TX origin.
This commit is contained in:
barakman
2018-08-08 13:04:14 +03:00
committed by Nicolás Venturo
parent a3e02be459
commit eca5bf9157

View File

@ -6,11 +6,11 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) {
let claimable;
beforeEach(async function () {
claimable = await Claimable.new();
claimable = await Claimable.new({ from: owner });
});
it('changes pendingOwner after transfer', async function () {
await claimable.transferOwnership(newOwner);
await claimable.transferOwnership(newOwner, { from: owner });
const pendingOwner = await claimable.pendingOwner();
assert.isTrue(pendingOwner === newOwner);
@ -26,7 +26,7 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) {
describe('after initiating a transfer', function () {
beforeEach(async function () {
await claimable.transferOwnership(newOwner);
await claimable.transferOwnership(newOwner, { from: owner });
});
it('changes allow pending owner to claim ownership', async function () {