UNPKG

@uniswap/v4-core

Version:

🦄 Core smart contracts of Uniswap v4

11 lines (8 loc) • 226 B
const hre = require('hardhat'); async function getChainId() { const chainIdHex = await hre.network.provider.send('eth_chainId', []); return new hre.web3.utils.BN(chainIdHex, 'hex'); } module.exports = { getChainId, };