Skip to content

Commit 887947b

Browse files
committed
eof: Fix error message wording.
1 parent 4791d70 commit 887947b

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

libyul/AsmAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ bool AsmAnalyzer::validateInstructions(evmasm::Instruction _instr, SourceLocatio
783783
4328_error,
784784
_location,
785785
fmt::format(
786-
"The \"{}\" instruction is only available on EOF.",
786+
"The \"{}\" instruction is only available in EOF.",
787787
fmt::arg("instruction", boost::to_lower_copy(instructionInfo(_instr, m_evmVersion).name))
788788
)
789789
);
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
object "a" {
2-
code {
3-
pop(extcall(address(), 0, 0, 0))
4-
pop(extdelegatecall(address(), 0, 0))
5-
pop(extstaticcall(address(), 0, 0))
6-
}
1+
{
2+
pop(extcall(address(), 0, 0, 0))
3+
pop(extdelegatecall(address(), 0, 0))
4+
pop(extstaticcall(address(), 0, 0))
75
}
8-
96
// ====
107
// bytecodeFormat: legacy
118
// ----
12-
// TypeError 4328: (36-43): The "extcall" instruction is only available on EOF.
13-
// TypeError 3950: (36-63): Expected expression to evaluate to one value, but got 0 values instead.
14-
// TypeError 4328: (77-92): The "extdelegatecall" instruction is only available on EOF.
15-
// TypeError 3950: (77-109): Expected expression to evaluate to one value, but got 0 values instead.
16-
// TypeError 4328: (123-136): The "extstaticcall" instruction is only available on EOF.
17-
// TypeError 3950: (123-153): Expected expression to evaluate to one value, but got 0 values instead.
9+
// TypeError 4328: (10-17): The "extcall" instruction is only available in EOF.
10+
// TypeError 3950: (10-37): Expected expression to evaluate to one value, but got 0 values instead.
11+
// TypeError 4328: (47-62): The "extdelegatecall" instruction is only available in EOF.
12+
// TypeError 3950: (47-79): Expected expression to evaluate to one value, but got 0 values instead.
13+
// TypeError 4328: (89-102): The "extstaticcall" instruction is only available in EOF.
14+
// TypeError 3950: (89-119): Expected expression to evaluate to one value, but got 0 values instead.

0 commit comments

Comments
 (0)