Migrate to Hardhat (#2397)
This commit is contained in:
@ -1,13 +1,11 @@
|
||||
const { accounts, contract, web3 } = require('@openzeppelin/test-environment');
|
||||
|
||||
const { balance, ether, expectRevert, send, expectEvent } = require('@openzeppelin/test-helpers');
|
||||
const { expect } = require('chai');
|
||||
|
||||
const AddressImpl = contract.fromArtifact('AddressImpl');
|
||||
const EtherReceiver = contract.fromArtifact('EtherReceiverMock');
|
||||
const CallReceiverMock = contract.fromArtifact('CallReceiverMock');
|
||||
const AddressImpl = artifacts.require('AddressImpl');
|
||||
const EtherReceiver = artifacts.require('EtherReceiverMock');
|
||||
const CallReceiverMock = artifacts.require('CallReceiverMock');
|
||||
|
||||
describe('Address', function () {
|
||||
contract('Address', function (accounts) {
|
||||
const [ recipient, other ] = accounts;
|
||||
|
||||
beforeEach(async function () {
|
||||
@ -145,8 +143,8 @@ describe('Address', function () {
|
||||
}, []);
|
||||
|
||||
await expectRevert(
|
||||
this.mock.functionCall(this.contractRecipient.address, abiEncodedCall),
|
||||
'Address: low-level call failed'
|
||||
this.mock.functionCall(this.contractRecipient.address, abiEncodedCall, { gas: '90000' }),
|
||||
'Address: low-level call failed',
|
||||
);
|
||||
}).timeout(5000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user