Merge pull request #12787 from ethereum/stackTooDeepMemorySafeSuggestion

Change memory-safe assembly annotation suggestion during stack too deep errors.
This commit is contained in:
Daniel Kirchner 2022-03-14 12:30:29 +01:00 committed by GitHub
commit db30f4d495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);