diff --git a/test/unittests/test_cpp.cpp b/test/unittests/test_cpp.cpp index 21a5b1ce9..bdf9abbd1 100644 --- a/test/unittests/test_cpp.cpp +++ b/test/unittests/test_cpp.cpp @@ -312,8 +312,8 @@ TEST(cpp, host) auto* host_context = example_host_create_context(); auto host = evmc::HostContext{host_context}; - auto a = evmc::address{{1}}; - auto v = evmc::bytes32{{7, 7, 7}}; + constexpr auto a = evmc::address{{{1}}}; + constexpr auto v = evmc::bytes32{{{7, 7, 7}}}; EXPECT_FALSE(host.account_exists(a));