feat: Change function name from finish to escrow_finish (#7840)

This commit is contained in:
Mayukha Vadari
2026-07-21 15:12:36 -04:00
committed by GitHub
parent 8022fc33cf
commit bc892f0bd3
8 changed files with 602 additions and 587 deletions

View File

@@ -103,7 +103,7 @@ WASM execution is metered, and if the gas limit is exceeded, execution fails.
## Entry Point
The WASM module must export a function with the name defined by
`ESCROW_FUNCTION_NAME` (currently `"finish"`). This function:
`escrowFunctionName` (currently `"escrow_finish"`). This function:
- Takes no parameters (or parameters passed via host function calls)
- Returns an `int32_t`:

View File

@@ -17,7 +17,7 @@ std::string_view inline constexpr wAlloc = "allocate";
std::string_view inline constexpr wDealloc = "deallocate";
std::string_view inline constexpr wProcExit = "proc_exit";
std::string_view inline constexpr escrowFunctionName = "finish";
std::string_view inline constexpr escrowFunctionName = "escrow_finish";
uint32_t inline constexpr maxPages = 128; // 8MB = 64KB*128