Migrate MerkleProof tests among other testing utilities (#4689)
This commit is contained in:
@ -1,12 +1,6 @@
|
||||
const hre = require('hardhat');
|
||||
|
||||
async function getChainId() {
|
||||
const chainIdHex = await hre.network.provider.send('eth_chainId', []);
|
||||
return new hre.web3.utils.BN(chainIdHex, 'hex');
|
||||
}
|
||||
const { ethers } = require('hardhat');
|
||||
|
||||
module.exports = {
|
||||
getChainId,
|
||||
// TODO: when tests are ready to support bigint chainId
|
||||
// getChainId: ethers.provider.getNetwork().then(network => network.chainId),
|
||||
// TODO: remove conversion toNumber() when bigint are supported
|
||||
getChainId: () => ethers.provider.getNetwork().then(network => ethers.toNumber(network.chainId)),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user