Skip to content

Commit

Permalink
CONTRACT_OWNER -> CUSTODIAN
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnial committed Feb 26, 2018
1 parent 7a89e6d commit 47b6c32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ts/unit/collateralized_contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ contract("CollateralizedContract (Unit Tests)", async (ACCOUNTS) => {
let mockToken: MockERC20TokenContract;
let mockRegistry: MockDebtRegistryContract;

const CONTRACT_OWNER = ACCOUNTS[0];
const CUSTODIAN = ACCOUNTS[0];
const COLLATERALIZER = ACCOUNTS[1];
const BENEFICIARY = ACCOUNTS[2];
const ATTACKER = ACCOUNTS[3];

const TX_DEFAULTS = { from: CONTRACT_OWNER, gas: 4000000 };
const TX_DEFAULTS = { from: CUSTODIAN, gas: 4000000 };

const COLLATERAL_AMOUNT = Units.ether(5);

Expand Down Expand Up @@ -139,7 +139,7 @@ contract("CollateralizedContract (Unit Tests)", async (ACCOUNTS) => {
mockToken.address,
new BigNumber(10),
new BigNumber(moment().add(2, 'years').unix()),
{ from: CONTRACT_OWNER } // the COLLATERALIZER has alloted an allowance, not the CONTRACT_OWNER
{ from: ATTACKER }
)).to.eventually.be.rejectedWith(REVERT_ERROR);
});
});
Expand Down

0 comments on commit 47b6c32

Please sign in to comment.