Prepare tests for hardhat-exposed transition (#3930)

Co-authored-by: Francisco <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2023-01-12 09:51:29 +01:00
committed by GitHub
parent d210847e28
commit 7c6e289782
13 changed files with 369 additions and 418 deletions

View File

@ -1,7 +1,5 @@
const { BN } = require('@openzeppelin/test-helpers');
function Enum (...options) {
return Object.fromEntries(options.map((key, i) => [ key, new BN(i) ]));
return Object.fromEntries(options.map((key, i) => [ key, web3.utils.toBN(i) ]));
}
module.exports = {