Skip to content

Commit

Permalink
fix assemble
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Jun 30, 2023
1 parent 4776563 commit cbd7fb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import tech.pegasys.teku.ethereum.executionclient.schema.ForkChoiceUpdatedResult;
import tech.pegasys.teku.ethereum.executionclient.schema.PayloadAttributesV2;
import tech.pegasys.teku.infrastructure.async.SafeFuture;
import tech.pegasys.teku.spec.Spec;
import tech.pegasys.teku.spec.executionlayer.ForkChoiceState;
import tech.pegasys.teku.spec.executionlayer.PayloadBuildingAttributes;

Expand All @@ -31,12 +30,9 @@ public class EngineForkChoiceUpdatedV2
tech.pegasys.teku.spec.executionlayer.ForkChoiceUpdatedResult> {

private static final Logger LOG = LogManager.getLogger();
private final Spec spec;

public EngineForkChoiceUpdatedV2(
final ExecutionEngineClient executionEngineClient, final Spec spec) {
public EngineForkChoiceUpdatedV2(final ExecutionEngineClient executionEngineClient) {
super(executionEngineClient);
this.spec = spec;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class EngineForkChoiceUpdatedV2Test {

@BeforeEach
public void setUp() {
jsonRpcMethod = new EngineForkChoiceUpdatedV2(executionEngineClient, spec);
jsonRpcMethod = new EngineForkChoiceUpdatedV2(executionEngineClient);
}

@Test
Expand Down Expand Up @@ -117,7 +117,7 @@ public void shouldCallForkChoiceUpdateV2WithPayloadAttributesV2WhenInCapella() {
PayloadAttributesV2.fromInternalPayloadBuildingAttributesV2(
Optional.of(payloadBuildingAttributes));

jsonRpcMethod = new EngineForkChoiceUpdatedV2(executionEngineClient, spec);
jsonRpcMethod = new EngineForkChoiceUpdatedV2(executionEngineClient);

when(executionEngineClient.forkChoiceUpdatedV2(forkChoiceStateV1, payloadAttributesV2))
.thenReturn(dummySuccessfulResponse());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private List<EngineJsonRpcMethod<?>> capellaSupportedMethods() {

methods.add(new EngineNewPayloadV2(executionEngineClient));
methods.add(new EngineGetPayloadV2(executionEngineClient, spec));
methods.add(new EngineForkChoiceUpdatedV2(executionEngineClient, spec));
methods.add(new EngineForkChoiceUpdatedV2(executionEngineClient));

return methods;
}
Expand All @@ -104,7 +104,7 @@ private List<EngineJsonRpcMethod<?>> denebSupportedMethods() {

methods.add(new EngineNewPayloadV3(executionEngineClient));
methods.add(new EngineGetPayloadV3(executionEngineClient, spec));
methods.add(new EngineForkChoiceUpdatedV2(executionEngineClient, spec));
methods.add(new EngineForkChoiceUpdatedV2(executionEngineClient));

return methods;
}
Expand Down

0 comments on commit cbd7fb3

Please sign in to comment.