Change memory-safe assembly annotation suggestion during stack too deep errors.

This commit is contained in:
Daniel Kirchner 2022-03-14 11:54:09 +01:00
parent 60463cfd11
commit 9410e125da

View File

@ -89,7 +89,7 @@ void EVMObjectCompiler::run(Object& _object, bool _optimize)
if (memoryGuardCalls.empty())
msg += "\nNo memoryguard was present. "
"Consider using memory-safe assembly only and annotating it via "
"\"/// @solidity memory-safe-assembly\".";
"'assembly (\"memory-safe\") { ... }'.";
else
msg += "\nmemoryguard was present.";
stackError << util::errinfo_comment(msg);