Skip to content

Commit b2fbac4

Browse files
shrugsfrangio
authored andcommitted
fix: reference contract name rather than filepath (OpenZeppelin#698)
1 parent 0a3aa19 commit b2fbac4

39 files changed

+49
-51
lines changed

migrations/1_initial_migration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Migrations = artifacts.require('./Migrations.sol');
1+
var Migrations = artifacts.require('Migrations');
22

33
module.exports = function (deployer) {
44
deployer.deploy(Migrations);

migrations/2_deploy_contracts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// var Ownable = artifacts.require("ownership/Ownable.sol");
1+
// var Ownable = artifacts.require("Ownable");
22

33
// NOTE: Use this file to easily deploy the contracts you're writing.
44
// (but make sure to reset this file before committing

test/Bounty.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ let sendReward = function (sender, receiver, value) {
66
value: value,
77
});
88
};
9-
var SecureTargetBounty = artifacts.require('mocks/SecureTargetBounty.sol');
10-
var InsecureTargetBounty = artifacts.require('mocks/InsecureTargetBounty.sol');
9+
var SecureTargetBounty = artifacts.require('SecureTargetBounty');
10+
var InsecureTargetBounty = artifacts.require('InsecureTargetBounty');
1111

1212
function awaitEvent (event, handler) {
1313
return new Promise((resolve, reject) => {

test/DayLimit.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { increaseTimeTo, duration } from './helpers/increaseTime';
44

55
import assertRevert from './helpers/assertRevert';
66

7-
const DayLimitMock = artifacts.require('mocks/DayLimitMock.sol');
7+
const DayLimitMock = artifacts.require('DayLimitMock');
88

99
contract('DayLimit', function (accounts) {
1010
let dayLimit;

test/Heritable.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import expectThrow from './helpers/expectThrow';
33

44
const NULL_ADDRESS = '0x0000000000000000000000000000000000000000';
55

6-
const Heritable = artifacts.require('../contracts/ownership/Heritable.sol');
6+
const Heritable = artifacts.require('Heritable');
77

88
contract('Heritable', function (accounts) {
99
let heritable;

test/LimitBalance.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assertRevert from './helpers/assertRevert';
2-
var LimitBalanceMock = artifacts.require('mocks/LimitBalanceMock.sol');
2+
var LimitBalanceMock = artifacts.require('LimitBalanceMock');
33

44
contract('LimitBalance', function (accounts) {
55
let lb;

test/ReentrancyGuard.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import expectThrow from './helpers/expectThrow';
3-
const ReentrancyMock = artifacts.require('./mocks/ReentrancyMock.sol');
4-
const ReentrancyAttack = artifacts.require('./mocks/ReentrancyAttack.sol');
3+
const ReentrancyMock = artifacts.require('ReentrancyMock');
4+
const ReentrancyAttack = artifacts.require('ReentrancyAttack');
55

66
contract('ReentrancyGuard', function (accounts) {
77
let reentrancyMock;

test/SimpleSavingsWallet.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11

22
import expectThrow from './helpers/expectThrow';
33

4-
const SimpleSavingsWallet = artifacts.require('../contracts/examples/SimpleSavingsWallet.sol');
4+
const SimpleSavingsWallet = artifacts.require('SimpleSavingsWallet');
55

66
contract('SimpleSavingsWallet', function (accounts) {
77
let savingsWallet;
88
let owner;
99

1010
const paymentAmount = 4242;
11-
11+
1212
beforeEach(async function () {
1313
savingsWallet = await SimpleSavingsWallet.new(4141);
1414
owner = await savingsWallet.owner();

test/crowdsale/CappedCrowdsale.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require('chai')
1111
.use(require('chai-bignumber')(BigNumber))
1212
.should();
1313

14-
const CappedCrowdsale = artifacts.require('mocks/CappedCrowdsaleImpl.sol');
14+
const CappedCrowdsale = artifacts.require('CappedCrowdsaleImpl');
1515
const MintableToken = artifacts.require('MintableToken');
1616

1717
contract('CappedCrowdsale', function ([_, wallet]) {

test/crowdsale/FinalizableCrowdsale.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const should = require('chai')
1010
.use(require('chai-bignumber')(BigNumber))
1111
.should();
1212

13-
const FinalizableCrowdsale = artifacts.require('mocks/FinalizableCrowdsaleImpl.sol');
13+
const FinalizableCrowdsale = artifacts.require('FinalizableCrowdsaleImpl');
1414
const MintableToken = artifacts.require('MintableToken');
1515

1616
contract('FinalizableCrowdsale', function ([_, owner, wallet, thirdparty]) {

0 commit comments

Comments
 (0)