diff --git a/Changelog.md b/Changelog.md index 2bf7f98012f3..733bbb8af53f 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,7 +1,7 @@ ### 0.8.29 (unreleased) Language Features: - * Introduce syntax for specifying contract storage base location. + * Introduce syntax for specifying contract storage layout base. Compiler Features: diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index a0944d27c5f3..23ad5222a781 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -433,8 +433,8 @@ ASTPointer Parser::parseContractDefinition() m_errorReporter.parserError( 8714_error, m_scanner->currentLocation(), - SecondarySourceLocation().append("Another base location was defined here", storageLayoutSpecifier->location()), - "Storage base location was already defined previously." + SecondarySourceLocation().append("Another storage layout was defined here", storageLayoutSpecifier->location()), + "Storage layout was already defined previously." ); storageLayoutSpecifier = parseStorageLayoutSpecifier(); diff --git a/test/cmdlineTests/storage_layout_specifier_repeated_definition_error/output.json b/test/cmdlineTests/storage_layout_specifier_repeated_definition_error/output.json index d203384a0fdc..2be0f92bb402 100644 --- a/test/cmdlineTests/storage_layout_specifier_repeated_definition_error/output.json +++ b/test/cmdlineTests/storage_layout_specifier_repeated_definition_error/output.json @@ -3,24 +3,24 @@ { "component": "general", "errorCode": "8714", - "formattedMessage": "ParserError: Storage base location was already defined previously. + "formattedMessage": "ParserError: Storage layout was already defined previously. --> fileA:5:34: | 5 | contract C layout at 0x1234 is A layout at 0xABCD { | ^^^^^^ -Note: Another base location was defined here +Note: Another storage layout was defined here --> fileA:5:12: | 5 | contract C layout at 0x1234 is A layout at 0xABCD { | ^^^^^^^^^^^^^^^^ ", - "message": "Storage base location was already defined previously.", + "message": "Storage layout was already defined previously.", "secondarySourceLocations": [ { "end": 100, "file": "fileA", - "message": "Another base location was defined here", + "message": "Another storage layout was defined here", "start": 84 } ], diff --git a/test/libsolidity/syntaxTests/storageLayoutSpecifier/duplicated_layout_definition.sol b/test/libsolidity/syntaxTests/storageLayoutSpecifier/duplicated_layout_definition.sol index 44f6a7976d10..99a2b7bd11c3 100644 --- a/test/libsolidity/syntaxTests/storageLayoutSpecifier/duplicated_layout_definition.sol +++ b/test/libsolidity/syntaxTests/storageLayoutSpecifier/duplicated_layout_definition.sol @@ -1,3 +1,3 @@ contract C layout at 0x1234 is A, B layout at 0xABC { } // ---- -// ParserError 8714: (36-42): Storage base location was already defined previously. +// ParserError 8714: (36-42): Storage layout was already defined previously.