mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add another argument to setimmutable and the AssignImmutable opcode, allowing to modify code at any memory offset.
This commit is contained in:
@@ -102,7 +102,7 @@ size_t AssemblyItem::arguments() const
|
||||
if (type() == Operation)
|
||||
return static_cast<size_t>(instructionInfo(instruction()).args);
|
||||
else if (type() == AssignImmutable)
|
||||
return 1;
|
||||
return 2;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user