mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename SUICIDE opcode to SELFDESTRUCT in libevmasm
This commit is contained in:
@@ -648,7 +648,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
|
||||
case Location::Selfdestruct:
|
||||
arguments.front()->accept(*this);
|
||||
utils().convertType(*arguments.front()->annotation().type, *function.parameterTypes().front(), true);
|
||||
m_context << Instruction::SUICIDE;
|
||||
m_context << Instruction::SELFDESTRUCT;
|
||||
break;
|
||||
case Location::SHA3:
|
||||
{
|
||||
|
||||
@@ -152,8 +152,8 @@ std::map<string, dev::solidity::Instruction> const& Parser::instructions()
|
||||
s_instructions[name] = instruction.second;
|
||||
}
|
||||
|
||||
// add alias for selfdestruct
|
||||
s_instructions["selfdestruct"] = solidity::Instruction::SUICIDE;
|
||||
// add alias for suicide
|
||||
s_instructions["suicide"] = solidity::Instruction::SELFDESTRUCT;
|
||||
}
|
||||
return s_instructions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user