Skip to content

Commit

Permalink
remove vote instruction return value
Browse files Browse the repository at this point in the history
  • Loading branch information
neo hong committed Jul 24, 2021
1 parent 92a5b8f commit cc255f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libevmasm/Instruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static std::map<Instruction, InstructionInfo> const c_instructionInfo =
{ Instruction::NATIVEFREEZE, { "NATIVEFREEZE", 0, 3, 1, true, Tier::Ext } },
{ Instruction::NATIVEUNFREEZE, { "NATIVEUNFREEZE", 0, 2, 1, true, Tier::Ext } },
{ Instruction::NATIVEFREEZEEXPIRETIME, { "NATIVEFREEZEEXPIRETIME", 0, 2, 1, true, Tier::Ext } },
{ Instruction::NATIVEVOTE, { "NATIVEVOTE", 0, 4, 0, true, Tier::Ext } },
{ Instruction::NATIVEVOTE, { "NATIVEVOTE", 0, 4, 1, true, Tier::Ext } },
{ Instruction::NATIVEWITHDRAWREWARD, { "NATIVEWITHDRAWREWARD", 0, 0, 1, true, Tier::Ext } },
{ Instruction::CALLER, { "CALLER", 0, 0, 1, false, Tier::Base } },
{ Instruction::CALLVALUE, { "CALLVALUE", 0, 0, 1, false, Tier::Base } },
Expand Down
2 changes: 1 addition & 1 deletion libsolidity/codegen/ExpressionCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
m_context << Instruction::DUP1 << Instruction::MLOAD;
}
m_context << Instruction::NATIVEVOTE;
m_context << Instruction::DUP1 << Instruction::ISZERO;
m_context << Instruction::ISZERO;
m_context.appendConditionalRevert(true);
break;
}
Expand Down

0 comments on commit cc255f2

Please sign in to comment.