Getting library contract deployed address in Foundry/forge script #9464
Unanswered
jimmychu0807
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I deploy a contract with foundry, it will automatically resolves the contract dependencies and deploy them as library contracts. Is it possible for me in foundry script to deploy contract A, knowing it will also deploy library contract B, and get (or pre-compute) the deployed address of contract B?.
I know there is
vm.computeCreate2Address()
, but I don't know what salt parameter foundry used and couldn't get the same deployed address as the one shown inrun-latest.json
.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions