Skip to content

Commit

Permalink
fix setGas
Browse files Browse the repository at this point in the history
  • Loading branch information
angrymouse committed Nov 9, 2023
1 parent 04b30fa commit d694972
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ napi_value flush_global(napi_env env,napi_callback_info info){
duk_get_memory_functions(ctx, funcs);
HeapConfig *heapData = (HeapConfig *)funcs->udata;
GasData *gasData = heapData->gasConfig;
gasData->gas_used=0
gasData->gas_used = 0;
napi_value undefined;
napi_get_undefined(env, &undefined);
return undefined;
Expand Down Expand Up @@ -101,7 +101,7 @@ napi_value create_context(napi_env env, napi_callback_info info)

return externalCtx;
}
napi_value setGas(napi_env env, napi_callback_info info)
napi_value set_gas(napi_env env, napi_callback_info info)
{
size_t argc = 2;
napi_value args[2], config_object;
Expand Down Expand Up @@ -130,7 +130,7 @@ napi_value setGas(napi_env env, napi_callback_info info)
napi_get_value_uint32(env, temp_value, &used_gas);

duk_memory_functions *funcs;
duk_get_memory_functions(ctx, &funcs);
duk_get_memory_functions(ctx, funcs);
HeapConfig *heapData = (HeapConfig *)funcs->udata;
GasData *gasData = heapData->gasConfig;

Expand Down
2 changes: 1 addition & 1 deletion duktape
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "glomium",
"version": "1.0.10",
"version": "1.0.11",
"description": "Duktape bindings for node.js",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit d694972

Please sign in to comment.