Skip to content

Commit

Permalink
update contract-loader dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Oct 28, 2020
1 parent 334cae2 commit 2b5b8a4
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 22 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Changelog

## 0.5.9 (2020-10-27)
* Updated `@openzeppelin/contract-loader` dependency.

## 0.5.8 (2020-10-27)
* Fixed `expectRevert` for Hardhat. ([#131](https://github.com/OpenZeppelin/openzeppelin-test-helpers/pull/131))
* Fixed `expectRevert` for Hardhat. ([#131](https://github.com/OpenZeppelin/openzeppelin-test-helpers/pull/131))

## 0.5.7 (2020-10-13)
* Made `expectEvent` return the event that was found. ([#129](https://github.com/OpenZeppelin/openzeppelin-test-helpers/pull/129))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const {
expectRevert, // Assertions for transactions that should fail
} = require('@openzeppelin/test-helpers');

const ERC20 = contract.fromArtifacts('ERC20');
const ERC20 = contract.fromArtifact('ERC20');

describe('ERC20', function () {
const [sender, receiver] = accounts;
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const {
expectRevert, // Assertions for transactions that should fail
} = require('@openzeppelin/test-helpers');

const ERC20 = contract.fromArtifacts('ERC20');
const ERC20 = contract.fromArtifact('ERC20');

describe('ERC20', function () {
const [sender, receiver] = accounts;
Expand Down
26 changes: 10 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"homepage": "https://github.com/OpenZeppelin/openzeppelin-test-helpers#readme",
"dependencies": {
"@openzeppelin/contract-loader": "^0.4.0",
"@openzeppelin/contract-loader": "^0.6.2",
"@truffle/contract": "^4.0.35 <4.2.2",
"ansi-colors": "^3.2.3",
"chai": "^4.2.0",
Expand Down
4 changes: 2 additions & 2 deletions test/src/expectEvent.web3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const { setupLoader } = require('@openzeppelin/contract-loader');

const web3Loader = setupLoader({ provider: web3.eth.currentProvider }).web3;

const EventEmitter = web3Loader.fromArtifacts('EventEmitter');
const IndirectEventEmitter = web3Loader.fromArtifacts('IndirectEventEmitter');
const EventEmitter = web3Loader.fromArtifact('EventEmitter');
const IndirectEventEmitter = web3Loader.fromArtifact('IndirectEventEmitter');

contract('expectEvent (web3 contracts) ', function ([deployer]) {
before(function () {
Expand Down

0 comments on commit 2b5b8a4

Please sign in to comment.