Hot answers tagged


Actually never mind, I just found the solution, which is definitely not very intuitive. I leave it here in case it can help someone. const level = web3.utils.toBN(1); // <------ we must use this function truffleAssert.eventEmitted(tx, 'EventName', {level}); // now this works So just using web3.utils.toBN suffices.

Only top voted, non community-wiki answers of a minimum length are eligible