From e20b2430ba54db7934c48845c90601cfde7ce143 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Tue, 26 May 2026 18:29:28 -0400 Subject: [PATCH] update gas amounts --- src/test/app/EscrowSmart_test.cpp | 2 +- src/test/app/Wasm_test.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/app/EscrowSmart_test.cpp b/src/test/app/EscrowSmart_test.cpp index e8ac202bd2..05cca0545e 100644 --- a/src/test/app/EscrowSmart_test.cpp +++ b/src/test/app/EscrowSmart_test.cpp @@ -1019,7 +1019,7 @@ struct EscrowSmart_test : public beast::unit_test::Suite if (BEAST_EXPECT(txMeta && txMeta->isFieldPresent(sfGasUsed))) { BEAST_EXPECTS( - txMeta->getFieldU32(sfGasUsed) == 64'292, + txMeta->getFieldU32(sfGasUsed) == 68'292, std::to_string(txMeta->getFieldU32(sfGasUsed))); } if (BEAST_EXPECT(txMeta->isFieldPresent(sfWasmReturnCode))) diff --git a/src/test/app/Wasm_test.cpp b/src/test/app/Wasm_test.cpp index c1879d1fe9..537b8b2330 100644 --- a/src/test/app/Wasm_test.cpp +++ b/src/test/app/Wasm_test.cpp @@ -426,7 +426,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, 70'340); + checkResult(re, 1, 69'840); env.close(); } @@ -465,7 +465,7 @@ struct Wasm_test : public beast::unit_test::Suite { TestHostFunctions hfs(env, 0); auto re = runEscrowWasm(allHFWasm, hfs, 100'000, escrowFunctionName, {}); - checkResult(re, 1, 70'340); + checkResult(re, 1, 69'840); } { @@ -489,7 +489,7 @@ struct Wasm_test : public beast::unit_test::Suite TestHostFunctions hfs(env, 0); auto re = runEscrowWasm( allHFWasm, hfs, std::numeric_limits::max(), escrowFunctionName, {}); - checkResult(re, 1, 70'340); + checkResult(re, 1, 69'840); } { // fail because trying to access nonexistent field @@ -658,7 +658,7 @@ struct Wasm_test : public beast::unit_test::Suite auto const codecovWasm = hexToBytes(kCodecovTestsWasmHex); TestHostFunctions hfs(env, 0); - auto const allowance = 220'169; + auto const allowance = 357'969; auto re = runEscrowWasm(codecovWasm, hfs, allowance, escrowFunctionName, {}); checkResult(re, 1, allowance);