Skip to content

Commit 7f8320a

Browse files
committed
Binaryen: Skip defined functions when verifying imports
1 parent 5ed31bb commit 7f8320a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/binaryen.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,10 @@ void BinaryenEngine::verifyContract(wasm::Module & module)
623623
};
624624

625625
for (auto const& import: module.functions) {
626+
627+
if (import->body) // Skip defined functions.
628+
continue;
629+
626630
ensureCondition(
627631
import->module == wasm::Name("ethereum")
628632
#if HERA_DEBUGGING

0 commit comments

Comments
 (0)