Skip to content

Commit

Permalink
#1702 changed to standard boost library
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Nov 6, 2023
1 parent ea28913 commit 3652a82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libethereum/Precompiled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <libskale/PrecompiledConfigPatch.h>
#include <libskale/State.h>
#include <boost/algorithm/hex.hpp>
#include <boost/algorithm/string/predicate.hpp>

#include <mutex>

Expand Down Expand Up @@ -758,7 +759,8 @@ static dev::u256 stat_parse_u256_hex_or_dec( const std::string& strValue ) {
}

static bool isCallToHistoricData( const std::string& callData ) {
return skutils::tools::wildcmp( "skaleConfig.sChain.nodes.*", callData.c_str() );
// in C++ 20 there is string::starts_with, but we do not use C++ 20 yet
boost::algorithm::starts_with(callData, "skaleConfig.sChain.nodes.");
}

static std::pair< std::string, unsigned > parseHistoricFieldReuqest( const std::string& callData ) {
Expand Down

0 comments on commit 3652a82

Please sign in to comment.