Skip to content

Commit

Permalink
N01 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
wildmolasses authored Jul 1, 2024
1 parent e5c64c9 commit ed61553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/VotesPartialDelegationUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ abstract contract VotesPartialDelegationUpgradeable is
/// @notice Denominator of a partial delegation fraction.
uint96 public constant DENOMINATOR = 10_000;
// keccak256(abi.encode(uint256(keccak256("storage.VotesPartialDelegation")) - 1)) &~bytes32(uint256(0xff))
bytes32 private constant VotesPartialDelegationStorageLocation =
bytes32 private constant VOTES_PARTIAL_DELEGATION_STORAGE_LOCATION =
0x60b289dca0c170df62b40d5e0313a4c0e665948cd979375ddb3db607c1b89f00;

/**
Expand Down Expand Up @@ -104,7 +104,7 @@ abstract contract VotesPartialDelegationUpgradeable is

function _getVotesPartialDelegationStorage() private pure returns (VotesPartialDelegationStorage storage $) {
assembly {
$.slot := VotesPartialDelegationStorageLocation
$.slot := VOTES_PARTIAL_DELEGATION_STORAGE_LOCATION
}
}

Expand Down

0 comments on commit ed61553

Please sign in to comment.