From eca5bf9157317b01063b1ac0034a2f47b5d74916 Mon Sep 17 00:00:00 2001 From: barakman Date: Wed, 8 Aug 2018 13:04:14 +0300 Subject: [PATCH] Deploy the contract with the designated owner (#1161) * Deploy the contract with the designated owner * Fixed TX origin. --- test/ownership/Claimable.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ownership/Claimable.test.js b/test/ownership/Claimable.test.js index 1ff8522bd..62a588dd6 100644 --- a/test/ownership/Claimable.test.js +++ b/test/ownership/Claimable.test.js @@ -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 () {