Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
eosio: Export memory by default
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d committed Aug 2, 2021
1 parent 1c626e1 commit b1ac9b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/external/wabt/src/tools/postpass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ void StripExports(Module& mod) {
for (auto exp : mod.exports) {
if (exp->name == "apply" && exp->kind == ExternalKind::Func) {
exports.push_back(exp);
}
if (exp->name == "memory" && exp->kind == ExternalKind::Memory) {
exports.push_back(exp);
}
if (exports.size() >= 2) {
break;
}
}
Expand Down

0 comments on commit b1ac9b4

Please sign in to comment.