From 2df8086fdcd6830d51043c6582115d3db9259853 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 4 Dec 2018 12:29:13 +0000 Subject: [PATCH] Remove evmc_address comparator helpers These are provided by EVMC 6.0.0 --- src/hera.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/hera.cpp b/src/hera.cpp index fcef16e42..2cbdd63c4 100644 --- a/src/hera.cpp +++ b/src/hera.cpp @@ -26,6 +26,7 @@ #include #include +#include #include "binaryen.h" #include "debugging.h" @@ -44,15 +45,6 @@ using namespace std; using namespace hera; -// FIXME: should be part of EVMC -bool operator==(evmc_address const& lhs, evmc_address const& rhs) { - return memcmp(lhs.bytes, rhs.bytes, sizeof(lhs.bytes)) == 0; -} - -bool operator<(evmc_address const& lhs, evmc_address const& rhs) { - return memcmp(lhs.bytes, rhs.bytes, sizeof(lhs.bytes)) < 0; -} - namespace { enum class hera_evm1mode {