Skip to content

Create ProposalSalt event for TimelockController#4001

Merged
frangio merged 11 commits intoOpenZeppelin:masterfrom
JulissaDantes:salt-event
Jan 27, 2023
Merged

Create ProposalSalt event for TimelockController#4001
frangio merged 11 commits intoOpenZeppelin:masterfrom
JulissaDantes:salt-event

Conversation

@JulissaDantes
Copy link
Contributor

@JulissaDantes JulissaDantes commented Jan 25, 2023

Fixes #3216
Fixes LIB-639

When scheduling a transaction using the TimelockController, one is required to provide a salt to distinguish otherwise identical transactions. The salt parameter is not emitted in the CallScheduled event which makes it impossible to recover. This PR introduces the ProposalSalt event to get the salt after scheduling an operation, if salt == 0 it will not emit an event.

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

@changeset-bot
Copy link

changeset-bot bot commented Jan 25, 2023

🦋 Changeset detected

Latest commit: f4b444b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openzeppelin-solidity Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@frangio frangio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@frangio frangio merged commit bc6de21 into OpenZeppelin:master Jan 27, 2023
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.

TimelockController 'salt' is unrecoverable yet required for execution

3 participants