未验证 提交 95a7dc5b 编写于 作者: D Daniel Larimer 提交者: GitHub

Merge pull request #3761 from EOSIO/fix_func_vs_glob_export_check

Fix apply function presence and type validation
......@@ -77,7 +77,9 @@ void ensure_apply_exported_visitor::validate( const IR::Module& m ) {
bool found_it = false;
for(const Export& exprt : m.exports) {
if(exprt.name != "apply" && exprt.kind != ObjectKind::function)
if(exprt.kind != ObjectKind::function)
continue;
if(exprt.name != "apply")
continue;
if(m.types[m.functions.getType(exprt.index).index] == FunctionType::get(ResultType::none, {ValueType::i64, ValueType::i64, ValueType::i64})) {
found_it = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册