Skip to content

Commit

Permalink
rpcdaemon: fix clang tidy after PR 1939 (#2163)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat committed Jul 4, 2024
1 parent 8d9c5c4 commit c476561
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions silkworm/rpc/core/evm_debug_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ using testing::_;
using testing::Invoke;
using testing::InvokeWithoutArgs;

static Bytes kZeroKey{*silkworm::from_hex("0000000000000000")};
static Bytes kZeroHeader{*silkworm::from_hex("bf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a")};
static const Bytes kZeroKey{*silkworm::from_hex("0000000000000000")};
static const Bytes kZeroHeader{*silkworm::from_hex("bf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a")};

static Bytes kConfigKey{kZeroHeader};
static Bytes kConfigValue{string_view_to_byte_view(kSepoliaConfig.to_json().dump())};
static const Bytes kConfigKey{kZeroHeader};
static const Bytes kConfigValue{string_view_to_byte_view(kSepoliaConfig.to_json().dump())}; // NOLINT(cppcoreguidelines-interfaces-global-init)

struct DebugExecutorTest : public test_util::ServiceContextTestBase {
test::MockBlockCache cache;
Expand Down
8 changes: 4 additions & 4 deletions silkworm/rpc/core/evm_trace_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ using testing::_;
using testing::Invoke;
using testing::InvokeWithoutArgs;

static Bytes kZeroKey{*silkworm::from_hex("0000000000000000")};
static Bytes kZeroHeader{*silkworm::from_hex("bf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a")};
static const Bytes kZeroKey{*silkworm::from_hex("0000000000000000")};
static const Bytes kZeroHeader{*silkworm::from_hex("bf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a")};

static Bytes kConfigKey{kZeroHeader};
static Bytes kConfigValue{string_view_to_byte_view(kSepoliaConfig.to_json().dump())};
static const Bytes kConfigKey{kZeroHeader};
static const Bytes kConfigValue{string_view_to_byte_view(kSepoliaConfig.to_json().dump())}; // NOLINT(cppcoreguidelines-interfaces-global-init)

struct TraceCallExecutorTest : public test_util::ServiceContextTestBase {
db::test_util::MockTransaction transaction;
Expand Down

0 comments on commit c476561

Please sign in to comment.