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

Create ProposalSalt event for TimelockController #4001

Merged
merged 11 commits into from
Jan 27, 2023

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

.changeset/five-poets-mix.md Outdated Show resolved Hide resolved
contracts/governance/TimelockController.sol Outdated Show resolved Hide resolved
contracts/governance/TimelockController.sol Outdated Show resolved Hide resolved
contracts/governance/TimelockController.sol Outdated Show resolved Hide resolved
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