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

fix: display all deployed contracts (PR 3) #482

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

kanej
Copy link
Member

@kanej kanej commented Sep 20, 2023

The result was constrained to only those contracts returned by the module. It now returns all contracts and contractAts that have been deployed in this run and previous runs.

The ignition-helper now takes the responsibility of resolving the modules results to contracts (and only the result contracts).

Note the types have not been altered.

Resolves #480.

@kanej
Copy link
Member Author

kanej commented Sep 20, 2023

I am unsure of this change. Currently deploy returns a deployment result. That deployment result type encodes the return results of the module passed in.

That misled us, I think the deployed contracts should include the contracts, librarys and contractsAts that are deployed in the module and its submodules.

This PR expands the returned results to include those contracts in submodules. However, I have not changed the type.

I think there are two approaches we can consider:

  • return all the contracts (but don't change the type) - as this PR does
  • change the type of the deploy result to not encode the module return, but insist on encoding it for the deploy function of the ignition-helper

@kanej kanej requested a review from alcuadrado September 20, 2023 20:35
@kanej kanej changed the title fix: display all deployed contracts fix: display all deployed contracts (PR 3) Sep 29, 2023
The result was constrained to only those contracts returned by the
module. It now returns all contracts and contractAts that have been
deployed in this run and previous runs.

The `ignition-helper` now takes the responsibility of resolving the
modules results to contracts (and only the result contracts).

Note the types have not been altered.

Resolves #480.
@kanej kanej force-pushed the fix/display-all-deployed branch from 31edccd to 422c821 Compare September 29, 2023 10:16
@kanej kanej changed the base branch from development to fix/allow-reconciliation-of-undefined-from September 29, 2023 10:17
The success result no longer includes the type of the current modules
results. The deploy result includes contracts from previous runs, hence
the type is too restrictive.
Base automatically changed from fix/allow-reconciliation-of-undefined-from to development October 2, 2023 19:28
@zoeyTM zoeyTM merged commit b43d6a8 into development Oct 2, 2023
6 checks passed
@zoeyTM zoeyTM deleted the fix/display-all-deployed branch October 2, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

deployed addresses only show top level module
3 participants