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

Add proposal call data and log json to migration script console logs #875

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

peersky
Copy link

@peersky peersky commented Jun 25, 2024

When running migration reviews OpenZeppelin needs to have a reliable input data of upcoming migration.

Enact Migration script is a convenient way as part of Pull request review. However, currently, Enact Migration script outputs do not show upcoming proposal call-data, nor is the event log formatted in any known canonical form (example).

Current Pull request:

  • adds additional private function to deploymentManager.ts that attempts to print:
    • Proposal calldata to console log
    • Proposal event in JSON ethersjs format
  • calls this new function whenever trace() is used with a transaction input
  • Adds unit tests that verify that code
    • Does print call data in console
    • Does not crash and does not print unknown log event data

This will

  • Speed up migration review process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant