calculate init code hash nodejs
import { INIT_CODE_HASH } from '../src/constants'
import { bytecode } from '@uniswap/v2-core/build/UniswapV2Pair.json'
import { keccak256 } from '@ethersproject/solidity'
const COMPUTED_INIT_CODE_HASH = keccak256(['bytes'], [`0x${bytecode}`])