Skip to content

Commit b9cbf1e

Browse files
clonkercameel
authored andcommitted
AsmAnalysis: Improve wording of invalid argument for eofcreate/returncontract error
1 parent 1ccea41 commit b9cbf1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libyul/AsmAnalysis.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ size_t AsmAnalyzer::operator()(FunctionCall const& _funCall)
523523
nativeLocationOf(arg),
524524
fmt::format(
525525
"Data name \"{}\" cannot be used as an argument of eofcreate/returncontract. "
526-
"An object name is only acceptable.",
526+
"Only an object name is acceptable.",
527527
formattedLiteral
528528
)
529529
);

test/libyul/yulSyntaxTests/eof/eofcreate_invalid_object_name_data.yul

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ object "a" {
1010
// EVMVersion: >=shanghai
1111
// bytecodeFormat: >=EOFv1
1212
// ----
13-
// TypeError 7575: (52-59): Data name "data1" cannot be used as an argument of eofcreate/returncontract. An object name is only acceptable.
13+
// TypeError 7575: (52-59): Data name "data1" cannot be used as an argument of eofcreate/returncontract. Only an object name is acceptable.

0 commit comments

Comments
 (0)