Skip to content

Commit d750b9d

Browse files
sky-coderayr0qs
andauthored
Fix the name of RETURNCONTRACT instruction in EOF assembly output (#15729)
* Fix RETURNCONTRACT instruction in AssemblyItem.cpp --------- Co-authored-by: r0qs <rodrigo.saramago@ethereum.org>
1 parent 9412165 commit d750b9d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libevmasm/AssemblyItem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ std::string AssemblyItem::toAssemblyText(Assembly const& _assembly) const
393393
text = "eofcreate{" + std::to_string(static_cast<size_t>(data())) + "}";
394394
break;
395395
case ReturnContract:
396-
text = "returcontract{" + std::to_string(static_cast<size_t>(data())) + "}";
396+
text = "returncontract{" + std::to_string(static_cast<size_t>(data())) + "}";
397397
break;
398398
case RelativeJump:
399399
text = "rjump{" + std::string("tag_") + std::to_string(relativeJumpTagID()) + "}";

test/cmdlineTests/strict_asm_eof_container_prague/output

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ stop
7373
sub_0: assembly {
7474
0x00
7575
dup1
76-
returcontract{0}
76+
returncontract{0}
7777
stop
7878

7979
sub_0: assembly {
@@ -89,7 +89,7 @@ sub_0: assembly {
8989
sub_1: assembly {
9090
0x00
9191
dup1
92-
returcontract{0}
92+
returncontract{0}
9393
stop
9494

9595
sub_0: assembly {

test/libyul/objectCompiler/eof/creation_with_immutables.yul

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object "a" {
6969
// /* "source":397:398 */
7070
// 0x00
7171
// /* "source":377:403 */
72-
// returcontract{0}
72+
// returncontract{0}
7373
// stop
7474
//
7575
// sub_0: assembly {

0 commit comments

Comments
 (0)