Skip to content

Commit

Permalink
revert: change _TEMP_STORAGE_SUFFIX to immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Oct 27, 2021
1 parent fb7f8fc commit ed64d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/standalone-utils/contracts/relayer/BaseRelayerLibrary.sol
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ contract BaseRelayerLibrary is IBaseRelayerLibrary {
}
}

bytes32 private constant _TEMP_STORAGE_SUFFIX = keccak256("balancer.base-relayer-library");
bytes32 private immutable _TEMP_STORAGE_SUFFIX = keccak256("balancer.base-relayer-library");

function _getTempStorageSlot(uint256 ref) private pure returns (bytes32) {
function _getTempStorageSlot(uint256 ref) private view returns (bytes32) {
// This replicates the mechanism Solidity uses to allocate storage slots for mappings, but using a hash as the
// mapping's storage slot, and subtracting 1 at the end. This should be more enough to prevent collisions with
// other state variables this or derived contracts might use.
Expand Down

0 comments on commit ed64d91

Please sign in to comment.