Linked library in ethers 6 #4915
Replies: 2 comments 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.
-
|
Hello @ricmoo , What would be the native |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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