Migrate to Hardhat (#2397)
This commit is contained in:
committed by
GitHub
parent
0c27ecc536
commit
f06738828b
@ -1,11 +1,10 @@
|
||||
const { contract } = require('@openzeppelin/test-environment');
|
||||
const { BN } = require('@openzeppelin/test-helpers');
|
||||
|
||||
const { expect } = require('chai');
|
||||
|
||||
const MathMock = contract.fromArtifact('MathMock');
|
||||
const MathMock = artifacts.require('MathMock');
|
||||
|
||||
describe('Math', function () {
|
||||
contract('Math', function (accounts) {
|
||||
const min = new BN('1234');
|
||||
const max = new BN('5678');
|
||||
|
||||
|
||||
@ -1,12 +1,11 @@
|
||||
const { contract } = require('@openzeppelin/test-environment');
|
||||
const { BN, constants, expectRevert } = require('@openzeppelin/test-helpers');
|
||||
const { MAX_UINT256 } = constants;
|
||||
|
||||
const { expect } = require('chai');
|
||||
|
||||
const SafeMathMock = contract.fromArtifact('SafeMathMock');
|
||||
const SafeMathMock = artifacts.require('SafeMathMock');
|
||||
|
||||
describe('SafeMath', function () {
|
||||
contract('SafeMath', function (accounts) {
|
||||
beforeEach(async function () {
|
||||
this.safeMath = await SafeMathMock.new();
|
||||
});
|
||||
|
||||
@ -1,13 +1,11 @@
|
||||
const { contract } = require('@openzeppelin/test-environment');
|
||||
|
||||
const { BN, constants, expectRevert } = require('@openzeppelin/test-helpers');
|
||||
const { MAX_INT256, MIN_INT256 } = constants;
|
||||
|
||||
const { expect } = require('chai');
|
||||
|
||||
const SignedSafeMathMock = contract.fromArtifact('SignedSafeMathMock');
|
||||
const SignedSafeMathMock = artifacts.require('SignedSafeMathMock');
|
||||
|
||||
describe('SignedSafeMath', function () {
|
||||
contract('SignedSafeMath', function (accounts) {
|
||||
beforeEach(async function () {
|
||||
this.safeMath = await SignedSafeMathMock.new();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user