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

@@ -217,7 +217,7 @@ struct Wasm_test : public beast::unit_test::Suite
auto re = engine.run(
allHostFuncWasm, hfs, 1'000'000, escrowFunctionName, {}, imp, env.journal);
checkResult(re, 1, 27'032);
checkResult(re, 1, 27'617);
env.close();
}
@@ -239,7 +239,7 @@ struct Wasm_test : public beast::unit_test::Suite
auto re = engine.run(
allHostFuncWasm, hfs, 1'000'000, escrowFunctionName, {}, imp, env.journal);
checkResult(re, 1, 68'792);
checkResult(re, 1, 70'877);
env.close();
}
@@ -280,7 +280,7 @@ struct Wasm_test : public beast::unit_test::Suite
{
TestHostFunctions hfs(env);
auto re = runEscrowWasm(allHFWasm, hfs, 100'000, escrowFunctionName, {});
checkResult(re, 1, 68'792);
checkResult(re, 1, 70'877);
}
{
@@ -304,7 +304,7 @@ struct Wasm_test : public beast::unit_test::Suite
TestHostFunctions hfs(env);
auto re = runEscrowWasm(
allHFWasm, hfs, std::numeric_limits<int64_t>::max(), escrowFunctionName, {});
checkResult(re, 1, 68'792);
checkResult(re, 1, 70'877);
}
{ // fail because trying to access nonexistent field
@@ -322,7 +322,7 @@ struct Wasm_test : public beast::unit_test::Suite
FieldNotFoundHostFunctions hfs(env);
auto re = runEscrowWasm(allHFWasm, hfs, 100'000, escrowFunctionName, {});
checkResult(re, -201, 28'965);
checkResult(re, -201, 29'502);
}
{ // fail because trying to allocate more than MAX_PAGES memory
@@ -340,7 +340,7 @@ struct Wasm_test : public beast::unit_test::Suite
OversizedFieldHostFunctions hfs(env);
auto re = runEscrowWasm(allHFWasm, hfs, 100'000, escrowFunctionName, {});
checkResult(re, -201, 28'965);
checkResult(re, -201, 29'502);
}
}