Files
openzeppelin-contracts/test/helpers/create.js
Hadrien Croubois 149e1b79fe Migrate Ownable tests (#4657)
Co-authored-by: ernestognw <ernestognw@gmail.com>
2023-10-17 10:05:58 +02:00

7 lines
262 B
JavaScript

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