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
25269a17
Commit
25269a17
authored
Mar 04, 2022
by
github-actions
Browse files
Options
Browse Files
Download
Plain Diff
Merge upstream master into patched/master
parents
34dcd9df
c239e1af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
EnumerableSet.sol
contracts/utils/structs/EnumerableSet.sol
+3
-3
No files found.
contracts/utils/structs/EnumerableSet.sol
View file @
25269a17
...
...
@@ -83,12 +83,12 @@ library EnumerableSet {
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 last
v
alue = set._values[lastIndex];
bytes32 last
V
alue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = last
v
alue;
set._values[toDeleteIndex] = last
V
alue;
// Update the index for the moved value
set._indexes[last
value] = valueIndex; // Replace lastv
alue's index to valueIndex
set._indexes[last
Value] = valueIndex; // Replace lastV
alue's index to valueIndex
}
// Delete the slot where the moved value was stored
...
...
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