create.js 262 B

123456
  1. const { ethers } = require('hardhat');
  2. module.exports = {
  3. computeCreateAddress: (from, nonce) => ethers.getCreateAddress({ from, nonce }),
  4. computeCreate2Address: (salt, bytecode, from) => ethers.getCreate2Address(from, salt, ethers.keccak256(bytecode)),
  5. };