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
Deploying contract with library Model , its usage in contract like: using Model for xxxxxx;
In ethers , we call ethers.getContractFactory({libraries: libraries}) to attach libraries
If we don't pass the libraries , viem panic in deployment : TransactionExecutionError: Invalid parameters were provided to the RPC method. Double check you have provided the correct parameters.
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
-
Deploying contract with library Model , its usage in contract like:
using Model for xxxxxx;
In ethers , we call
ethers.getContractFactory({libraries: libraries})
to attach librariesIf we don't pass the libraries , viem panic in deployment :
TransactionExecutionError: Invalid parameters were provided to the RPC method. Double check you have provided the correct parameters.
How to pass libraries when deploying?
Beta Was this translation helpful? Give feedback.
All reactions