Migrate to Hardhat (#2397)
This commit is contained in:
@ -1,16 +1,14 @@
|
||||
const { accounts, contract, web3 } = require('@openzeppelin/test-environment');
|
||||
|
||||
const { expectRevert } = require('@openzeppelin/test-helpers');
|
||||
const { toEthSignedMessageHash, fixSignature } = require('../helpers/sign');
|
||||
|
||||
const { expect } = require('chai');
|
||||
|
||||
const ECDSAMock = contract.fromArtifact('ECDSAMock');
|
||||
const ECDSAMock = artifacts.require('ECDSAMock');
|
||||
|
||||
const TEST_MESSAGE = web3.utils.sha3('OpenZeppelin');
|
||||
const WRONG_MESSAGE = web3.utils.sha3('Nope');
|
||||
|
||||
describe('ECDSA', function () {
|
||||
contract('ECDSA', function (accounts) {
|
||||
const [ other ] = accounts;
|
||||
|
||||
beforeEach(async function () {
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
const { contract } = require('@openzeppelin/test-environment');
|
||||
|
||||
require('@openzeppelin/test-helpers');
|
||||
|
||||
const { MerkleTree } = require('../helpers/merkleTree.js');
|
||||
@ -7,9 +5,9 @@ const { keccakFromString, bufferToHex } = require('ethereumjs-util');
|
||||
|
||||
const { expect } = require('chai');
|
||||
|
||||
const MerkleProofWrapper = contract.fromArtifact('MerkleProofWrapper');
|
||||
const MerkleProofWrapper = artifacts.require('MerkleProofWrapper');
|
||||
|
||||
describe('MerkleProof', function () {
|
||||
contract('MerkleProof', function (accounts) {
|
||||
beforeEach(async function () {
|
||||
this.merkleProof = await MerkleProofWrapper.new();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user