From 4b625d261edace9245261ea3ff9ed6dc5f7fa708 Mon Sep 17 00:00:00 2001 From: Peter Farber Date: Fri, 18 Oct 2024 14:12:06 -0400 Subject: [PATCH] fix(dev-cli): remove lua metering until solution is found for backwards compatiblity --- dev-cli/container/src/aolibc/aostdio.c | 46 +++++++++++++------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/dev-cli/container/src/aolibc/aostdio.c b/dev-cli/container/src/aolibc/aostdio.c index 26612b89a..87f0a8be0 100644 --- a/dev-cli/container/src/aolibc/aostdio.c +++ b/dev-cli/container/src/aolibc/aostdio.c @@ -96,26 +96,26 @@ int munmap(void* addr, size_t length) { return 0; } */ -EM_JS(int, metering_gasUsed, (), { - return Module.gas.used; -}); - -static int gasUsed(lua_State *L) -{ - lua_pushnumber(L, metering_gasUsed()); - - return 1; -} - -// Library registration function -static const struct luaL_Reg aolib_funcs[] = { - {"gasUsed", gasUsed}, - {NULL, NULL} /* Sentinel */ -}; - -// Initialization function -int luaopen_metering(lua_State *L) -{ - luaL_newlib(L, aolib_funcs); - return 1; -} \ No newline at end of file +// EM_JS(int, metering_gasUsed, (), { +// return Module.gas.used; +// }); + +// static int gasUsed(lua_State *L) +// { +// lua_pushnumber(L, metering_gasUsed()); + +// return 1; +// } + +// // Library registration function +// static const struct luaL_Reg aolib_funcs[] = { +// {"gasUsed", gasUsed}, +// {NULL, NULL} /* Sentinel */ +// }; + +// // Initialization function +// int luaopen_metering(lua_State *L) +// { +// luaL_newlib(L, aolib_funcs); +// return 1; +// } \ No newline at end of file