Skip to content

Commit 569df51

Browse files
committed
add ContractDefinition.storageLayout
1 parent 5839897 commit 569df51

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 0.4.60 (2025-03-15)
4+
5+
- Added `ContractDefinition.storageLayout`, available since Solidity 0.8.29, corresponding to `layout at`.
6+
37
### 0.4.59 (2024-09-06)
48

59
- Added `'transient'` as a possible value for `VariableDeclaration.storageLocation`, available since Solidity 0.8.27.

scripts/build-schema.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ const schema = {
289289
usedErrors: optional(array(integer)),
290290
usedEvents: optional(array(integer)),
291291
internalFunctionIDs: optional(record(integer)),
292+
storageLayout: optional(ref('StorageLayoutSpecifier')),
293+
},
294+
295+
StorageLayoutSpecifier: {
296+
baseSlotExpression: ref('Expression'),
292297
},
293298

294299
DoWhileStatement: {

0 commit comments

Comments
 (0)