Linked library in ethers 6 #4915
igorroman777
started this conversation in
General
Replies: 1 comment 1 reply
-
Are you sure that is an Ethers class? It looks like it might be a hardhat class (they change a few of the APIs on the An ethers ContractFactory only accepts 3 parameters. It looks like maybe Hardhat accepts a 4th parameter for the Solidity compiler and linker. Or maybe those are used as the constructor arguments? In general for ethers (v5 and v6) you use something like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how to deploey the library in contract.
The old solution in ether 5 does not work:
const marketplaceFactory = new ethers.ContractFactory( marketplaceJson.abi, marketplaceJson.bytecode, deployer, { libraries: { MarketItemLib: marketItemLibAddress } } );
Beta Was this translation helpful? Give feedback.
All reactions