Skip to content

Commit 4b68ba5

Browse files
committed
Simplify callExport() since the arguments parameter is const now
1 parent 742caca commit 4b68ba5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hera.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,7 @@ void execute(
330330
EthereumInterface interface(context, state_code, msg, result, meterInterfaceGas);
331331
ModuleInstance instance(module, &interface);
332332

333-
Name main = Name("main");
334-
LiteralList args;
335-
instance.callExport(main, args);
333+
instance.callExport(Name("main"), LiteralList{});
336334
}
337335

338336
void hera_destroy_result(evmc_result const* result) noexcept

0 commit comments

Comments
 (0)