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
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:
deploymentManager.ts
that attempts to print:trace()
is used with a transaction inputThis will