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
4c706480
Unverified
Commit
4c706480
authored
Mar 12, 2019
by
Nicolás Venturo
Committed by
GitHub
Mar 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in ERC20Snapshot. (#1670)
parent
4dd8575b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ERC20Snapshot.sol
contracts/drafts/ERC20Snapshot.sol
+3
-3
No files found.
contracts/drafts/ERC20Snapshot.sol
View file @
4c706480
...
@@ -31,7 +31,7 @@ contract ERC20Snapshot is ERC20 {
...
@@ -31,7 +31,7 @@ contract ERC20Snapshot is ERC20 {
}
}
mapping (address => Snapshots) private _accountBalanceSnapshots;
mapping (address => Snapshots) private _accountBalanceSnapshots;
Snapshots private _totalSupplySnaphots;
Snapshots private _totalSupplySnap
s
hots;
// Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.
// Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.
Counters.Counter private _currentSnapshotId;
Counters.Counter private _currentSnapshotId;
...
@@ -56,7 +56,7 @@ contract ERC20Snapshot is ERC20 {
...
@@ -56,7 +56,7 @@ contract ERC20Snapshot is ERC20 {
}
}
function totalSupplyAt(uint256 snapshotId) public view returns(uint256) {
function totalSupplyAt(uint256 snapshotId) public view returns(uint256) {
(bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnaphots);
(bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnap
s
hots);
return snapshotted ? value : totalSupply();
return snapshotted ? value : totalSupply();
}
}
...
@@ -118,7 +118,7 @@ contract ERC20Snapshot is ERC20 {
...
@@ -118,7 +118,7 @@ contract ERC20Snapshot is ERC20 {
}
}
function _updateTotalSupplySnapshot() private {
function _updateTotalSupplySnapshot() private {
_updateSnapshot(_totalSupplySnaphots, totalSupply());
_updateSnapshot(_totalSupplySnap
s
hots, totalSupply());
}
}
function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {
function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {
...
...
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