Fix revert with reason coming from a string variable

This commit is contained in:
Alex Beregszaszi authored and chriseth committed 2018-05-09 17:53:17 +02:00
1 parent 868d449c38
commit c03a29dea8
4 files changed
+45 -2

No files matched your search

-1
View File
@@ -89,7 +89,6 @@ void CompilerUtils::revertWithStringData(Type const& _argumentType)
abiEncode({_argumentType.shared_from_this()}, {make_shared<ArrayType>(DataLocation::Memory, true)});
toSizeAfterFreeMemoryPointer();
m_context << Instruction::REVERT;
m_context.adjustStackOffset(_argumentType.sizeOnStack());
}
unsigned CompilerUtils::loadFromMemory(