mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make most of the parameters mandatory in encodeToMemory
This commit is contained in:
1 parent
9c62647f19
commit
a657d3b1a1
2 files changed
+6
-6
No files matched your search
@@ -581,7 +581,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
|
||||
_context << Instruction::ADD;
|
||||
}
|
||||
);
|
||||
utils().encodeToMemory(argumentTypes, function.parameterTypes());
|
||||
utils().encodeToMemory(argumentTypes, function.parameterTypes(), true, false);
|
||||
// now on stack: memory_end_ptr
|
||||
// need: size, offset, endowment
|
||||
utils().toSizeAfterFreeMemoryPointer();
|
||||
@@ -751,7 +751,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
|
||||
nonIndexedParamTypes.push_back(function.parameterTypes()[arg]);
|
||||
}
|
||||
utils().fetchFreeMemoryPointer();
|
||||
utils().encodeToMemory(nonIndexedArgTypes, nonIndexedParamTypes);
|
||||
utils().encodeToMemory(nonIndexedArgTypes, nonIndexedParamTypes, true, false);
|
||||
// need: topic1 ... topicn memsize memstart
|
||||
utils().toSizeAfterFreeMemoryPointer();
|
||||
m_context << logInstruction(numIndexed);
|
||||
|
||||
Reference in new issue
Block a user