diff --git a/src/transform-namespaces.test.ts.md b/src/transform-namespaces.test.ts.md index 54127c8..f490d3c 100644 --- a/src/transform-namespaces.test.ts.md +++ b/src/transform-namespaces.test.ts.md @@ -39,7 +39,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.C2")) - 1)) & ~bytes32(uint256(0xff))␊ - bytes32 private constant C2StorageLocation = 0xf05a05e0e3d15983ea921cad031aaea3040e9d631039045748753d29c5d24800;␊ + bytes32 internal constant C2StorageLocation = 0xf05a05e0e3d15983ea921cad031aaea3040e9d631039045748753d29c5d24800;␊ ␊ function _getC2Storage() private pure returns (C2Storage storage $) {␊ assembly {␊ @@ -76,7 +76,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.C3")) - 1)) & ~bytes32(uint256(0xff))␊ - bytes32 private constant C3StorageLocation = 0xaa7e0685867d809c517036b8f21e99d58bd04b1da2b202f167c355fdf82b4a00;␊ + bytes32 internal constant C3StorageLocation = 0xaa7e0685867d809c517036b8f21e99d58bd04b1da2b202f167c355fdf82b4a00;␊ ␊ function _getC3Storage() private pure returns (C3Storage storage $) {␊ assembly {␊ @@ -92,7 +92,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.C4")) - 1)) & ~bytes32(uint256(0xff))␊ - bytes32 private constant C4StorageLocation = 0x536a56e760d844b098efcc16711808e0b18bad9e07c2e82c78312ab719318d00;␊ + bytes32 internal constant C4StorageLocation = 0x536a56e760d844b098efcc16711808e0b18bad9e07c2e82c78312ab719318d00;␊ ␊ function _getC4Storage() private pure returns (C4Storage storage $) {␊ assembly {␊ @@ -124,7 +124,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.C5")) - 1)) & ~bytes32(uint256(0xff))␊ - bytes32 private constant C5StorageLocation = 0xd94dd1cf5c0ce3bfbbd2555b11ad43bf11eeff03081ca744441b0fb7c0a6ec00;␊ + bytes32 internal constant C5StorageLocation = 0xd94dd1cf5c0ce3bfbbd2555b11ad43bf11eeff03081ca744441b0fb7c0a6ec00;␊ ␊ function _getC5Storage() private pure returns (C5Storage storage $) {␊ assembly {␊ @@ -155,7 +155,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.C7")) - 1)) & ~bytes32(uint256(0xff))␊ - bytes32 private constant C7StorageLocation = 0x931371859ca5c5440d3850c7cf9c14adb9d1257b7ddd15562d561cd48871d300;␊ + bytes32 internal constant C7StorageLocation = 0x931371859ca5c5440d3850c7cf9c14adb9d1257b7ddd15562d561cd48871d300;␊ ␊ function _getC7Storage() private pure returns (C7Storage storage $) {␊ assembly {␊ @@ -173,7 +173,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.C8")) - 1)) & ~bytes32(uint256(0xff))␊ - bytes32 private constant C8StorageLocation = 0xb93ad5010b0e46eab6ce47e44cb42c85a263d4e8daf058e8a66e4f114144f200;␊ + bytes32 internal constant C8StorageLocation = 0xb93ad5010b0e46eab6ce47e44cb42c85a263d4e8daf058e8a66e4f114144f200;␊ ␊ function _getC8Storage() private pure returns (C8Storage storage $) {␊ assembly {␊ diff --git a/src/transform-namespaces.test.ts.snap b/src/transform-namespaces.test.ts.snap index 2ef5f9b..d6c9331 100644 Binary files a/src/transform-namespaces.test.ts.snap and b/src/transform-namespaces.test.ts.snap differ diff --git a/src/transform.test.ts.snap b/src/transform.test.ts.snap index 34104a1..81b1090 100644 Binary files a/src/transform.test.ts.snap and b/src/transform.test.ts.snap differ diff --git a/src/transformations/add-namespace-struct.ts b/src/transformations/add-namespace-struct.ts index 9f2af24..356d0be 100644 --- a/src/transformations/add-namespace-struct.ts +++ b/src/transformations/add-namespace-struct.ts @@ -132,7 +132,7 @@ export function addNamespaceStruct(include?: (source: string) => boolean) { `}`, ``, `// keccak256(abi.encode(uint256(keccak256("${id}")) - 1)) & ~bytes32(uint256(0xff))`, - `bytes32 private constant ${namespace}Location = ${erc7201Location(id)};`, + `bytes32 internal constant ${namespace}Location = ${erc7201Location(id)};`, ``, `function _get${namespace}() private pure returns (${namespace} storage $) {`, [`assembly {`, [`$.slot := ${namespace}Location`], `}`],