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
97190360
Commit
97190360
authored
Aug 10, 2021
by
github-actions
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transpile
92fbf5bb
parent
503fb21a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
GovernorProposalThresholdUpgradeable.sol
...nance/extensions/GovernorProposalThresholdUpgradeable.sol
+0
-1
merge-upstream.sh
scripts/upgradeable/merge-upstream.sh
+1
-2
05-fix-governor-initializers.patch
scripts/upgradeable/patch/05-fix-governor-initializers.patch
+12
-0
No files found.
contracts/governance/extensions/GovernorProposalThresholdUpgradeable.sol
View file @
97190360
...
@@ -14,7 +14,6 @@ abstract contract GovernorProposalThresholdUpgradeable is Initializable, Governo
...
@@ -14,7 +14,6 @@ abstract contract GovernorProposalThresholdUpgradeable is Initializable, Governo
function __GovernorProposalThreshold_init() internal initializer {
function __GovernorProposalThreshold_init() internal initializer {
__Context_init_unchained();
__Context_init_unchained();
__ERC165_init_unchained();
__ERC165_init_unchained();
__EIP712_init_unchained(name_, version());
__IGovernor_init_unchained();
__IGovernor_init_unchained();
__GovernorProposalThreshold_init_unchained();
__GovernorProposalThreshold_init_unchained();
}
}
...
...
scripts/upgradeable/merge-upstream.sh
View file @
97190360
...
@@ -8,8 +8,7 @@ if [[ "$REF" != refs/heads/* ]]; then
...
@@ -8,8 +8,7 @@ if [[ "$REF" != refs/heads/* ]]; then
echo
"
$REF
is not a branch"
>
&2
echo
"
$REF
is not a branch"
>
&2
exit
1
exit
1
elif
[[
"
$REF
"
==
refs/heads/patches
]]
;
then
elif
[[
"
$REF
"
==
refs/heads/patches
]]
;
then
echo
"Run on a different branch"
>
&2
REF
=
refs/heads/master
exit
1
fi
fi
set
-x
set
-x
...
...
scripts/upgradeable/patch/05-fix-governor-initializers.patch
View file @
97190360
...
@@ -82,3 +82,15 @@ index cdfd0ae7..48408d9c 100644
...
@@ -82,3 +82,15 @@ index cdfd0ae7..48408d9c 100644
__IGovernor_init_unchained();
__IGovernor_init_unchained();
__GovernorVotes_init_unchained(tokenAddress);
__GovernorVotes_init_unchained(tokenAddress);
}
}
diff --git a/contracts/governance/extensions/GovernorProposalThresholdUpgradeable.sol b/contracts/governance/extensions/GovernorProposalThresholdUpgradeable.sol
index c66ebc16..3bba9501 100644
--- a/contracts/governance/extensions/GovernorProposalThresholdUpgradeable.sol
+++ b/contracts/governance/extensions/GovernorProposalThresholdUpgradeable.sol
@@ -14,7 +14,6 @@ abstract contract GovernorProposalThresholdUpgradeable is Initializable, Governo
function __GovernorProposalThreshold_init() internal initializer {
__Context_init_unchained();
__ERC165_init_unchained();
- __EIP712_init_unchained(name_, version());
__IGovernor_init_unchained();
__GovernorProposalThreshold_init_unchained();
}
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