Skip to content

Commit

Permalink
fix compile error with gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
taokayan committed Oct 12, 2023
1 parent 8a92bd9 commit 7ac4617
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/basic_evm_tester.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ class evm_validating_tester : public testing::base_tester {
vcfg.contracts_console = false;
}

static unique_ptr<controller> create_validating_node(controller::config vcfg, const genesis_state& genesis, bool use_genesis, deep_mind_handler* dmlog = nullptr) {
unique_ptr<controller> validating_node = std::make_unique<controller>(vcfg, testing::make_protocol_feature_set(), genesis.compute_chain_id());
static std::unique_ptr<controller> create_validating_node(controller::config vcfg, const genesis_state& genesis, bool use_genesis, deep_mind_handler* dmlog = nullptr) {
std::unique_ptr<controller> validating_node = std::make_unique<controller>(vcfg, testing::make_protocol_feature_set(), genesis.compute_chain_id());
validating_node->add_indices();
if(dmlog)
{
Expand Down Expand Up @@ -311,7 +311,7 @@ class evm_validating_tester : public testing::base_tester {
return ok;
}

unique_ptr<controller> validating_node;
std::unique_ptr<controller> validating_node;
uint32_t num_blocks_to_producer_before_shutdown = 0;
bool skip_validate = false;
};
Expand Down

0 comments on commit 7ac4617

Please sign in to comment.