link_libraries_hardhat
Documentation for eth_defi.abi.link_libraries_hardhat function.
- link_libraries_hardhat(bytecode, link_references, hardhat_export)[source]
Link Solidity libraries based on Hardhat deployment.
Warning
Preliminary implementation
See
get_linked_contract()
for details.- Parameters
bytecode (str) –
Raw bytecode of a Solidity contract.
Get from ABI file.
Bytecode must be a in string format, because placeholders are not parseable hex.
link_references (dict) –
List of binary sequences we need to replaced by a contract filename.
Get from ABI file.
hardhat_export (dict) –
Hardhat’s export format.
You get with hardhat deploy –export.
- Returns
Linked bytecode