Skip to content

Commit

Permalink
Merge pull request #6132 from ethDreamer/devnet-1-fix-test
Browse files Browse the repository at this point in the history
Fix Broken Test on `devnet-1`
  • Loading branch information
ethDreamer authored Jul 22, 2024
2 parents 6127b4b + 9e8b71e commit ba28217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions beacon_node/execution_layer/src/engine_api/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ impl HttpJsonRpc {
struct Quantity(#[serde(with = "serde_utils::u64_hex_be")] u64);

let params = json!([Quantity(start), Quantity(count)]);
let response: Vec<Option<JsonExecutionPayloadBodyV1<E>>> = self
let response: Vec<Option<JsonExecutionPayloadBodyV2<E>>> = self
.rpc_request(
ENGINE_GET_PAYLOAD_BODIES_BY_RANGE_V2,
params,
Expand All @@ -1121,7 +1121,7 @@ impl HttpJsonRpc {

Ok(response
.into_iter()
.map(|opt_json| opt_json.map(|v2| JsonExecutionPayloadBody::V1(v2).into()))
.map(|opt_json| opt_json.map(|v2| JsonExecutionPayloadBody::V2(v2).into()))
.collect())
}

Expand Down
2 changes: 1 addition & 1 deletion consensus/fork_choice/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ async fn progressive_balances_cache_attester_slashing() {
// (`HeaderInvalid::ProposerSlashed`). The harness should be re-worked to successfully skip
// the slot in this scenario rather than panic-ing. The same applies to
// `progressive_balances_cache_proposer_slashing`.
.apply_blocks(1)
.apply_blocks(2)
.await
.add_previous_epoch_attester_slashing()
.await
Expand Down

0 comments on commit ba28217

Please sign in to comment.