Fix relevant warnings (#3685)
This commit is contained in:
@ -263,7 +263,7 @@ abstract contract ERC20Votes is IVotes, ERC20Permit {
|
||||
return a - b;
|
||||
}
|
||||
|
||||
function _unsafeAccess(Checkpoint[] storage ckpts, uint256 pos) private view returns (Checkpoint storage result) {
|
||||
function _unsafeAccess(Checkpoint[] storage ckpts, uint256 pos) private pure returns (Checkpoint storage result) {
|
||||
assembly {
|
||||
mstore(0, ckpts.slot)
|
||||
result.slot := add(keccak256(0, 0x20), pos)
|
||||
|
||||
Reference in New Issue
Block a user