Migrate to Hardhat (#2397)
This commit is contained in:
committed by
GitHub
parent
0c27ecc536
commit
f06738828b
@ -1,16 +1,19 @@
|
||||
const { accounts, contract, web3 } = require('@openzeppelin/test-environment');
|
||||
|
||||
const { expectEvent, expectRevert, constants } = require('@openzeppelin/test-helpers');
|
||||
const gsn = require('@openzeppelin/gsn-helpers');
|
||||
const { fixSignature } = require('../helpers/sign');
|
||||
const { setGSNProvider } = require('../helpers/set-gsn-provider');
|
||||
const { utils: { toBN } } = require('web3');
|
||||
const { ZERO_ADDRESS } = constants;
|
||||
|
||||
const GSNRecipientSignatureMock = contract.fromArtifact('GSNRecipientSignatureMock');
|
||||
const GSNRecipientSignatureMock = artifacts.require('GSNRecipientSignatureMock');
|
||||
|
||||
describe('GSNRecipientSignature', function () {
|
||||
contract('GSNRecipientSignature', function (accounts) {
|
||||
const [ signer, other ] = accounts;
|
||||
|
||||
before(function () {
|
||||
setGSNProvider(GSNRecipientSignatureMock, accounts);
|
||||
});
|
||||
|
||||
beforeEach(async function () {
|
||||
this.recipient = await GSNRecipientSignatureMock.new(signer);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user