Skip to content

Commit

Permalink
Remove SILKWORM_ASSERT/std::abort() tests for ConsensusParameters::de…
Browse files Browse the repository at this point in the history
…code
  • Loading branch information
elmato committed Jun 17, 2024
1 parent af7435e commit 97b2a41
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions silkworm/node/db/access_layer_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -950,13 +950,10 @@ TEST_CASE("ConsensusParameters") {
};

auto tmp = value1.encode();
REQUIRE_THROWS(eosevm::ConsensusParameters::decode({}));

ByteView bv{tmp};
REQUIRE_NOTHROW(eosevm::ConsensusParameters::decode(bv));

REQUIRE_THROWS(eosevm::ConsensusParameters::decode(ByteView{bv.data(), bv.size()-1}));

constexpr eosevm::ConsensusParameters value2{
.gas_fee_parameters = eosevm::GasFeeParameters{
.gas_txnewaccount = 2,
Expand Down

0 comments on commit 97b2a41

Please sign in to comment.