Migrate to Hardhat (#2397)
This commit is contained in:
committed by
GitHub
parent
0c27ecc536
commit
f06738828b
@ -1,20 +1,24 @@
|
||||
const { accounts, contract, web3 } = require('@openzeppelin/test-environment');
|
||||
|
||||
const { balance, BN, constants, ether, expectEvent, expectRevert } = require('@openzeppelin/test-helpers');
|
||||
const { ZERO_ADDRESS } = constants;
|
||||
|
||||
const gsn = require('@openzeppelin/gsn-helpers');
|
||||
const { setGSNProvider } = require('../helpers/set-gsn-provider');
|
||||
|
||||
const { expect } = require('chai');
|
||||
|
||||
const GSNRecipientMock = contract.fromArtifact('GSNRecipientMock');
|
||||
const ContextMockCaller = contract.fromArtifact('ContextMockCaller');
|
||||
const GSNRecipientMock = artifacts.require('GSNRecipientMock');
|
||||
const ContextMockCaller = artifacts.require('ContextMockCaller');
|
||||
|
||||
const { shouldBehaveLikeRegularContext } = require('./Context.behavior');
|
||||
|
||||
describe('GSNRecipient', function () {
|
||||
contract('GSNRecipient', function (accounts) {
|
||||
const [ payee, sender, newRelayHub ] = accounts;
|
||||
|
||||
before(function () {
|
||||
setGSNProvider(GSNRecipientMock, accounts);
|
||||
setGSNProvider(ContextMockCaller, accounts);
|
||||
});
|
||||
|
||||
beforeEach(async function () {
|
||||
this.recipient = await GSNRecipientMock.new();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user