Skip to content

Commit

Permalink
Fix evm_executor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elmato committed Sep 5, 2024
1 parent 1295861 commit 1144f5c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions silkworm/silkrpc/core/evm_executor_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ TEST_CASE("EVMExecutor") {
test::DummyTransaction tx{0, mock_cursor};
auto state = tx.create_state(current_executor, tx_database, block_number);
EVMExecutor executor{*chain_config_ptr, workers, state};
auto result = executor.call(block, txn, {});
auto result = executor.call(block, txn, {}, 0, {});
my_pool.stop();
my_pool.join();
CHECK(result.error_code == std::nullopt);
Expand Down Expand Up @@ -110,7 +110,7 @@ TEST_CASE("EVMExecutor") {
test::DummyTransaction tx{0, mock_cursor};
auto state = tx.create_state(current_executor, tx_database, block_number);
EVMExecutor executor{*chain_config_ptr, workers, state};
auto result = executor.call(block, txn, {});
auto result = executor.call(block, txn, {}, 0, {});
my_pool.stop();
my_pool.join();
CHECK(result.error_code == std::nullopt);
Expand Down Expand Up @@ -140,7 +140,7 @@ TEST_CASE("EVMExecutor") {
test::DummyTransaction tx{0, mock_cursor};
auto state = tx.create_state(current_executor, tx_database, block_number);
EVMExecutor executor{*chain_config_ptr, workers, state};
auto result = executor.call(block, txn, {});
auto result = executor.call(block, txn, {}, 0, {});
my_pool.stop();
my_pool.join();
CHECK(result.error_code == std::nullopt);
Expand Down Expand Up @@ -170,7 +170,7 @@ TEST_CASE("EVMExecutor") {
test::DummyTransaction tx{0, mock_cursor};
auto state = tx.create_state(current_executor, tx_database, block_number);
EVMExecutor executor{*chain_config_ptr, workers, state};
auto result = executor.call(block, txn, {});
auto result = executor.call(block, txn, {}, 0, {});
my_pool.stop();
my_pool.join();
CHECK(result.error_code == std::nullopt);
Expand Down Expand Up @@ -200,7 +200,7 @@ TEST_CASE("EVMExecutor") {
test::DummyTransaction tx{0, mock_cursor};
auto state = tx.create_state(current_executor, tx_database, block_number);
EVMExecutor executor{*chain_config_ptr, workers, state};
auto result = executor.call(block, txn, {}, false, /* gasBailout */ true);
auto result = executor.call(block, txn, {}, 0, {}, false, /* gasBailout */ true);
executor.reset();
my_pool.stop();
my_pool.join();
Expand Down Expand Up @@ -238,7 +238,7 @@ TEST_CASE("EVMExecutor") {
test::DummyTransaction tx{0, mock_cursor};
auto state = tx.create_state(current_executor, tx_database, block_number);
EVMExecutor executor{*chain_config_ptr, workers, state};
auto result = executor.call(block, txn, {}, true, /* gasBailout */ true);
auto result = executor.call(block, txn, {}, 0, {}, true, /* gasBailout */ true);
my_pool.stop();
my_pool.join();
CHECK(result.error_code == 0);
Expand Down

0 comments on commit 1144f5c

Please sign in to comment.