Skip to content

How to resolve a contract future in ignition #4777

Discussion options

You must be logged in to vote

Hey @mwawrusch, Ignition doesn't support executing arbitrary code on futures currently. The value of the future will only be resolved during execution, not when the module is evaluated.

I suspect you need a more flexible extension point in Ignition to support diamond deploys - we are trying to build that out using our create2 strategy as a first example.

So you would be able to override how a future is dealt with by providing your own arbitrary code (i.e. the encodeDataFunction above), but crucially you would have access to the complete context of execution at that point, including the addresses of previous deployed futures.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mwawrusch
Comment options

@CamposBruno
Comment options

@kanej
Comment options

Answer selected by mwawrusch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants