This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.8; | |
/** | |
* @title ImmutableStringLib | |
* @author Zer0dot | |
* | |
* @notice This library introduces an abstraction to store and decode immutable strings. | |
* This is necessary because simply casting a string to a bytes32 variable will lose the | |
* length, which will be hardcoded as 32 upon re-converting via abi.encode. |