Skip to content

Commit

Permalink
PR review comments addressing (no. 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodiazet committed Oct 15, 2024
1 parent d155d5a commit 6567616
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion libevmasm/Assembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,11 @@ LinkerObject const& Assembly::assembleEOF() const
switch (item.type())
{
case Operation:
solAssert(item.instruction() != Instruction::DATALOADN);
solAssert(
item.instruction() != Instruction::DATALOADN &&
item.instruction() != Instruction::RETURNCONTRACT &&
item.instruction() != Instruction::EOFCREATE
);
solAssert(!(item.instruction() >= Instruction::PUSH0 && item.instruction() <= Instruction::PUSH32));
ret.bytecode += assembleOperation(item);
break;
Expand Down
2 changes: 1 addition & 1 deletion libevmasm/AssemblyItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ enum AssemblyItemType
/// Loads 32 bytes from static auxiliary data of EOF data section. The offset does *not* have to be always from the beginning
/// of the data EOF section. More details here: https://github.com/ipsilon/eof/blob/main/spec/eof.md#data-section-lifecycle
AuxDataLoadN,
EofCreate, /// Creates new contract using subcointainer as initcode
EofCreate, /// Creates new contract using subcontainer as initcode
ReturnContract, /// Returns new container along (with auxiliary data section) to be deployed
VerbatimBytecode ///< Contains data that is inserted into the bytecode code section without modification.
};
Expand Down

0 comments on commit 6567616

Please sign in to comment.