Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into elmato/add-overhead-s…
Browse files Browse the repository at this point in the history
…torage-price
  • Loading branch information
elmato committed Jul 11, 2024
2 parents 229be9d + e0b96d2 commit 48ad835
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
DWITH_TEST_ACTIONS: ${{ matrix.DWITH_TEST_ACTIONS }}

- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: contract.test-actions-${{ matrix.DWITH_TEST_ACTIONS }}.tar.gz
path: contract.tar.gz
Expand All @@ -80,7 +80,8 @@ jobs:
run: .github/workflows/build-contract-test.sh

- name: Upload Artifacts
uses: actions/upload-artifact@v3
if: ${{ matrix.DWITH_TEST_ACTIONS == 'on' }}
uses: actions/upload-artifact@v4
with:
name: contract-test.tar.gz
path: contract-test.tar.gz
Expand All @@ -92,8 +93,8 @@ jobs:
DWITH_TEST_ACTIONS: ${{ matrix.DWITH_TEST_ACTIONS }}

- name: Upload Test Metrics
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results.xml
name: test-results-test-actions-${{ matrix.DWITH_TEST_ACTIONS }}.xml
path: test-results.xml
if-no-files-found: error
2 changes: 1 addition & 1 deletion silkworm
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ target_compile_options(evm_runtime PUBLIC --no-missing-ricardian-clause)
if (WITH_LARGE_STACK)
target_link_options(evm_runtime PUBLIC --stack-size=50000000)
else()
target_link_options(evm_runtime PUBLIC --stack-size=33952)
target_link_options(evm_runtime PUBLIC --stack-size=37328)
endif()
4 changes: 2 additions & 2 deletions src/actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void evm_contract::exec(const exec_input& input, const std::optional<exec_callba
assert_unfrozen();

std::optional<std::pair<const std::string, const ChainConfig*>> found_chain_config = lookup_known_chain(_config->get_chainid());
check( found_chain_config.has_value(), "failed to find expected chain config" );
check( found_chain_config.has_value(), "unknown chainid" );

eosevm::block_mapping bm(_config->get_genesis_time().sec_since_epoch());

Expand Down Expand Up @@ -465,7 +465,7 @@ void evm_contract::process_tx(const runtime_config& rc, eosio::name miner, const
}

std::optional<std::pair<const std::string, const ChainConfig*>> found_chain_config = lookup_known_chain(_config->get_chainid());
check( found_chain_config.has_value(), "failed to find expected chain config" );
check( found_chain_config.has_value(), "unknown chainid" );

eosevm::block_mapping bm(_config->get_genesis_time().sec_since_epoch());

Expand Down
2 changes: 1 addition & 1 deletion tests/init_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ BOOST_FIXTURE_TEST_CASE(check_init, basic_evm_tester) try {
eosio_assert_message_exception,
[](const eosio_assert_message_exception& e) {return testing::expect_assert_message(e, "assertion failure with message: contract not initialized");});

BOOST_REQUIRE_EXCEPTION(init(42),
BOOST_REQUIRE_EXCEPTION(init(0),
eosio_assert_message_exception,
[](const eosio_assert_message_exception& e) {return testing::expect_assert_message(e, "assertion failure with message: unknown chainid");});
init(15555);
Expand Down

0 comments on commit 48ad835

Please sign in to comment.