Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged


The openzeppelin-test-helpers library that you are using can actually retrieve all events from a transaction. expectEvent.inLogs(logs, ...); actually scans logs for each event that was emitted during the transaction and will look for the event name (and values) that you specified. In your case, you simply need to add another expectEvent.inLogs(logs, ...); ...


I found it easier to use the require method. src/utils.js: exports.a = 3; test/foo/testfile.js: // Note the relative path from the current test file. const utils = require('../../src/utils.js'); console.log(utils.a); // 3

Top 50 recent answers are included