Skip to content

Use Truffle artifacts.require correctly #625

@frangio

Description

@frangio

As the documentation says, the argument to artifacts.require should be the contract name, and not the file name.

I think Truffle supports the file name because it worked this way originally, but we should move to the new way.

This affects all tests. Example:
https://github.com/OpenZeppelin/zeppelin-solidity/blob/cda518d35379bb6136a0a5f314a4b8b6fadae4b9/test/StandardToken.test.js#L4

Should be StandardTokenMock = artifacts.require('StandardTokenMock').

Metadata

Metadata

Assignees

Labels

good first issueLow hanging fruit for new contributors to get involved!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions