Skip to content

Commit

Permalink
Merge pull request #297 from ethereum/evmc
Browse files Browse the repository at this point in the history
Upgrade EVMC to 8.0.0-alpha.1
  • Loading branch information
chfast authored Apr 13, 2021
2 parents 57093be + b7cd0c8 commit 7eeb4fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 41 deletions.
27 changes: 0 additions & 27 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,30 +256,6 @@ jobs:
- upload_coverage:
flags: consensus

state-tests:
environment:
TESTS_REV: ac8cf2cd8ba326d67101183060272e7f7b1eaa92
ALETH_REV: 1.8.0
docker:
- image: cimg/base:stable
steps:
- unpack_package
- run:
name: "Download Aleth"
background: true
command: curl -L https://github.com/ethereum/aleth/releases/download/v$ALETH_REV/aleth-$ALETH_REV-linux-x86_64.tar.gz | tar xz
- download_consensus_tests:
rev: ac8cf2cd8ba326d67101183060272e7f7b1eaa92
- run:
name: "Fixup consensus tests"
command: |
mkdir -p ~/tests/GeneralStateTests/stEWASMTests
mkdir -p ~/tests/src/GeneralStateTestsFiller/stEWASMTests
- run:
name: "Run State Tests"
command: bin/testeth -t GeneralStateTests -- --testpath ~/tests --vm ~/package/lib/libevmone.so


gcc-min:
executor: linux-gcc-7
steps:
Expand Down Expand Up @@ -385,9 +361,6 @@ workflows:
tags:
only: /^v[0-9].*/
- consensus-tests
- state-tests:
requires:
- release-linux
- gcc-min
- gcc-latest-coverage
- clang-latest-ubsan
Expand Down
15 changes: 2 additions & 13 deletions test/utils/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,9 @@
#include <evmc/hex.hpp>

using evmc::bytes;
using evmc::bytes_view;
using evmc::from_hex;
using evmc::hex;
using bytes_view = std::basic_string_view<uint8_t>;

/// Decodes hex encoded string to bytes.
inline bytes from_hex(std::string_view hex)
{
return evmc::from_hex(std::string{hex});
}

/// Encodes bytes as hex string.
inline std::string hex(bytes_view bs)
{
return evmc::hex(bs.data(), bs.size());
}

/// Decodes the hexx encoded string.
///
Expand Down

0 comments on commit 7eeb4fe

Please sign in to comment.