-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(Smart contracts): Fix solidity version + more tests #633
Conversation
✅ Deploy Preview for quantumbridge ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
25 * 60 * 60, | ||
), | ||
).to.revertedWith('TimelockController: operation already scheduled'); | ||
}); | ||
|
||
it('Change the salt, the operation should be successfully scheduled and later executed', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it revert if we use the same salt? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, so the salt is calculated this way:
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.1/contracts/governance/TimelockController.sol#L194
so let's say if target, value, data, predecessor, salt are the same --> we get a hash that has been scheduled or done --> getTimestamp(hash) > 0 --> schedule will revert (
the check over here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM - not sure if there are any more changes.
…hain to send tokens to the defiAddress anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What this PR does / why we need it:
Which issue(s) does this PR fixes?:
Fixes #293
Additional comments?:
Developer Checklist: