Skip to content

Commit f2f849d

Browse files
authored
PR #17 make transient tstore and tload internal
make tload and tstore internal functions
2 parents 07c2dff + 0f684d9 commit f2f849d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/TransientStorage.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ contract TransientStorage {
88

99
/// Load a value from the transient storage.
1010
/// @param key The key to store or retrieve the value.
11-
function tload(bytes32 key) public view returns (bytes32 value) {
11+
function tload(bytes32 key) internal view returns (bytes32 value) {
1212
assembly ("memory-safe") {
1313
value := tload(key)
1414
}
@@ -17,7 +17,7 @@ contract TransientStorage {
1717
/// Store a value in the transient storage.
1818
/// @param key The key to store or retrieve the value.
1919
/// @param value The value to store in the transient storage.
20-
function tstore(bytes32 key, bytes32 value) public {
20+
function tstore(bytes32 key, bytes32 value) internal {
2121
assembly ("memory-safe") {
2222
tstore(key, value)
2323
}

0 commit comments

Comments
 (0)