Migrate MerkleProof tests among other testing utilities (#4689)
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
const { web3 } = require('hardhat');
|
||||
const { ethers } = require('hardhat');
|
||||
const { impersonateAccount, setBalance } = require('@nomicfoundation/hardhat-network-helpers');
|
||||
|
||||
// Hardhat default balance
|
||||
const DEFAULT_BALANCE = web3.utils.toBN('10000000000000000000000');
|
||||
const DEFAULT_BALANCE = 10000n * ethers.WeiPerEther;
|
||||
|
||||
async function impersonate(account, balance = DEFAULT_BALANCE) {
|
||||
await impersonateAccount(account);
|
||||
|
||||
Reference in New Issue
Block a user