Skip to content

Commit 2160124

Browse files
frangioernestognw
authored andcommitted
Revert memory pointer to storage pointer (#4550)
1 parent 005c2cc commit 2160124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/governance/extensions/GovernorVotesQuorumFraction.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ abstract contract GovernorVotesQuorumFraction is GovernorVotes {
4949
uint256 length = _quorumNumeratorHistory._checkpoints.length;
5050

5151
// Optimistic search, check the latest checkpoint
52-
Checkpoints.Checkpoint208 memory latest = _quorumNumeratorHistory._checkpoints[length - 1];
52+
Checkpoints.Checkpoint208 storage latest = _quorumNumeratorHistory._checkpoints[length - 1];
5353
uint48 latestKey = latest._key;
5454
uint208 latestValue = latest._value;
5555
if (latestKey <= timepoint) {

0 commit comments

Comments
 (0)