showing results for - "calculate init code hash nodejs"
Marley
05 Aug 2018
1import { INIT_CODE_HASH } from '../src/constants'
2
3import { bytecode } from '@uniswap/v2-core/build/UniswapV2Pair.json'
4import { keccak256 } from '@ethersproject/solidity'
5
6const COMPUTED_INIT_CODE_HASH = keccak256(['bytes'], [`0x${bytecode}`])
7