Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for linking libraries during deployment #100

Open
ArtificialPB opened this issue Mar 13, 2024 · 0 comments
Open

Support for linking libraries during deployment #100

ArtificialPB opened this issue Mar 13, 2024 · 0 comments
Labels
difficulty: medium Medium issues requiring additional skills. type: feature Feature requests.

Comments

@ArtificialPB
Copy link
Member

Module

ABI

📝 Description

Libraries with public / external functions are deployed as a separate contract. If deploying a contract that depends on such a library, the contract needs to be linked with the library. This is done by replacing a placeholder (e.g. __$7e77f802c8a093aee7d19a899432839085$__) in the bytecode of the contract with the address of the library.

Ideally, we should support two cases:

  • deploy both the library and the contract in a single step (deploy call does everything for you)
  • deploy library in a separate step and provide an address to deployed library when deploying the contract

See for reference:

@ArtificialPB ArtificialPB added type: feature Feature requests. difficulty: medium Medium issues requiring additional skills. labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: medium Medium issues requiring additional skills. type: feature Feature requests.
Projects
None yet
Development

No branches or pull requests

1 participant