From 64351ed0deabdcba552b2d6122226521344e6c6b Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Tue, 23 Apr 2024 14:33:57 +0200 Subject: [PATCH] fix generation --- scripts/generate/templates/Arrays.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/generate/templates/Arrays.js b/scripts/generate/templates/Arrays.js index bc279466b7f..6166d6f6de2 100644 --- a/scripts/generate/templates/Arrays.js +++ b/scripts/generate/templates/Arrays.js @@ -356,6 +356,7 @@ const unsafeSetLength = type => ` * WARNING: this does not clear elements if length is reduced, of initialize elements if length is increased. */ function unsafeSetLength(${type}[] storage array, uint256 len) internal { + /// @solidity memory-safe-assembly assembly { sstore(array.slot, len) }