Skip to content

Commit

Permalink
refactor: use internal for NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
smol-ninja authored and andreivladbrg committed Jan 26, 2024
1 parent 8051b4e commit bbf6366
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/abstracts/SablierV2MerkleStreamer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ abstract contract SablierV2MerkleStreamer is
bool public immutable override TRANSFERABLE;

/*//////////////////////////////////////////////////////////////////////////
PRIVATE CONSTANT
INTERNAL CONSTANT
//////////////////////////////////////////////////////////////////////////*/

/// @dev The name of the campaign stored as bytes32.
bytes32 private immutable _NAME;
bytes32 internal immutable NAME;

/*//////////////////////////////////////////////////////////////////////////
INTERNAL STORAGE
Expand All @@ -69,10 +69,10 @@ abstract contract SablierV2MerkleStreamer is

admin = params.initialAdmin;
ASSET = params.asset;
_NAME = bytes32(abi.encodePacked(params.name));
MERKLE_ROOT = params.merkleRoot;
EXPIRATION = params.expiration;
CANCELABLE = params.cancelable;
EXPIRATION = params.expiration;
MERKLE_ROOT = params.merkleRoot;
NAME = bytes32(abi.encodePacked(params.name));
TRANSFERABLE = params.transferable;
}

Expand All @@ -92,7 +92,7 @@ abstract contract SablierV2MerkleStreamer is

/// @inheritdoc ISablierV2MerkleStreamer
function name() external view override returns (string memory) {
return string(abi.encodePacked(_NAME));
return string(abi.encodePacked(NAME));
}

/*//////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit bbf6366

Please sign in to comment.