Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
5630276c
Commit
5630276c
authored
Aug 24, 2021
by
github-actions
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transpile
b99f49d3
parent
618d129b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
26 deletions
+8
-26
upgradeable.yml
.github/workflows/upgradeable.yml
+0
-23
CHANGELOG.md
CHANGELOG.md
+4
-0
TimelockControllerUpgradeable.sol
contracts/governance/TimelockControllerUpgradeable.sol
+4
-3
No files found.
.github/workflows/upgradeable.yml
deleted
100644 → 0
View file @
618d129b
name
:
Upgradeable Trigger
on
:
push
:
branches
:
-
master
-
release-v*
jobs
:
trigger
:
runs-on
:
ubuntu-latest
steps
:
-
id
:
app
uses
:
getsentry/action-github-app-token@v1
with
:
app_id
:
${{ secrets.UPGRADEABLE_APP_ID }}
private_key
:
${{ secrets.UPGRADEABLE_APP_PK }}
-
run
:
|
curl -X POST \
https://api.github.com/repos/OpenZeppelin/openzeppelin-contracts-upgradeable/dispatches \
-H 'Accept: application/vnd.github.v3+json' \
-H 'Authorization: token ${{ steps.app.outputs.token }}' \
-d '{ "event_type": "Update", "client_payload": { "ref": "${{ github.ref }}" } }'
CHANGELOG.md
View file @
5630276c
# Changelog
## 4.3.1
*
`TimelockController`
: Add additional isOperationReady check.
## 4.3.0 (2021-08-17)
*
`ERC2771Context`
: use private variable from storage to store the forwarder address. Fixes issues where
`_msgSender()`
was not callable from constructors. (
[
#2754
](
https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2754
)
)
...
...
contracts/governance/TimelockControllerUpgradeable.sol
View file @
5630276c
...
...
@@ -280,7 +280,7 @@ contract TimelockControllerUpgradeable is Initializable, AccessControlUpgradeabl
bytes32 salt
) public payable virtual onlyRoleOrOpenRole(EXECUTOR_ROLE) {
bytes32 id = hashOperation(target, value, data, predecessor, salt);
_beforeCall(predecessor);
_beforeCall(
id,
predecessor);
_call(id, 0, target, value, data);
_afterCall(id);
}
...
...
@@ -305,7 +305,7 @@ contract TimelockControllerUpgradeable is Initializable, AccessControlUpgradeabl
require(targets.length == datas.length, "TimelockController: length mismatch");
bytes32 id = hashOperationBatch(targets, values, datas, predecessor, salt);
_beforeCall(predecessor);
_beforeCall(
id,
predecessor);
for (uint256 i = 0; i < targets.length; ++i) {
_call(id, i, targets[i], values[i], datas[i]);
}
...
...
@@ -315,7 +315,8 @@ contract TimelockControllerUpgradeable is Initializable, AccessControlUpgradeabl
/**
* @dev Checks before execution of an operation's calls.
*/
function _beforeCall(bytes32 predecessor) private view {
function _beforeCall(bytes32 id, bytes32 predecessor) private view {
require(isOperationReady(id), "TimelockController: operation is not ready");
require(predecessor == bytes32(0) || isOperationDone(predecessor), "TimelockController: missing dependency");
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment