Skip to content

Commit

Permalink
Merge pull request #463 from ewasm/remove-evmc-helper
Browse files Browse the repository at this point in the history
Remove evmc_address comparator helpers
  • Loading branch information
axic authored Dec 4, 2018
2 parents 469a96f + 2df8086 commit 2cbcb23
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/hera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <map>

#include <evmc/evmc.h>
#include <evmc/helpers.hpp>

#include "binaryen.h"
#include "debugging.h"
Expand All @@ -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 {
Expand Down

0 comments on commit 2cbcb23

Please sign in to comment.