You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if Viem also had this support. The logic should be pretty straightforward, replace the placeholder listed in linkReferences in a for loop with supplied addresses.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Viem currently does not support linking libraries on deployment. Compiled ABI include
linkReferences
list of placeholders in bytecode that should be replaced with an address of a deployed library. Hardhat with Ethers has this feature already:https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-ethers#library-linking
It would be great if Viem also had this support. The logic should be pretty straightforward, replace the placeholder listed in
linkReferences
in a for loop with supplied addresses.More context:
https://docs.soliditylang.org/en/latest/using-the-compiler.html#library-linking
Beta Was this translation helpful? Give feedback.
All reactions