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
This PR captures the second half of #96, specifically:
Moreover, it might be possible to avoid a bunch of boilerplate code for library creation, by allowing to pass in an Either<address, artefact> for each dependent libraries. As libraries cannot have constructors, the way to instantiate the is always the same and could be part of the code generation as well". If the argument is an address the code will directly link this address (e.g. when we reuse a previously deployed version of that library). If the argument is an artefact, we can internally invoke the following line to create an instance.
let lib = Library::builder(&web3).deploy().await.expect()
The text was updated successfully, but these errors were encountered:
This PR generates a `Libraries` struct with named fields for each library. This makes things like the order in which the libraries are specified not matter and makes the API much less error prone.
This PR was made possible because of the recent change to generate all the code in a module (w00t) and is a much simple solution to the proposed new linking API. As such this PR closes#144
and closes#96.
I created #254 to capture the second half of #96 which is still not implemented.
### Test Plan
Updated example 😄
### Commit History
* libraries type
* generate field identifier in one place
This PR captures the second half of #96, specifically:
The text was updated successfully, but these errors were encountered: