Commit eca5bf91 by barakman Committed by Nicolás Venturo

Deploy the contract with the designated owner (#1161)

* Deploy the contract with the designated owner

* Fixed TX origin.
parent a3e02be4
...@@ -6,11 +6,11 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) { ...@@ -6,11 +6,11 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) {
let claimable; let claimable;
beforeEach(async function () { beforeEach(async function () {
claimable = await Claimable.new(); claimable = await Claimable.new({ from: owner });
}); });
it('changes pendingOwner after transfer', async function () { it('changes pendingOwner after transfer', async function () {
await claimable.transferOwnership(newOwner); await claimable.transferOwnership(newOwner, { from: owner });
const pendingOwner = await claimable.pendingOwner(); const pendingOwner = await claimable.pendingOwner();
assert.isTrue(pendingOwner === newOwner); assert.isTrue(pendingOwner === newOwner);
...@@ -26,7 +26,7 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) { ...@@ -26,7 +26,7 @@ contract('Claimable', function ([_, owner, newOwner, anyone]) {
describe('after initiating a transfer', function () { describe('after initiating a transfer', function () {
beforeEach(async function () { beforeEach(async function () {
await claimable.transferOwnership(newOwner); await claimable.transferOwnership(newOwner, { from: owner });
}); });
it('changes allow pending owner to claim ownership', async function () { it('changes allow pending owner to claim ownership', async function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment