Skip to content

Commit

Permalink
apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Aug 2, 2024
1 parent 8a2c147 commit e0ae844
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,7 @@ public SafeFuture<Optional<Attestation>> createAggregate(
.map(ObjectAndMetaData::getData));
}

return sendRequest(
() ->
typeDefClient
.createAggregate(slot, attestationHashTreeRoot));
return sendRequest(() -> typeDefClient.createAggregate(slot, attestationHashTreeRoot));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,17 +263,17 @@ public void prepareBeaconProposer(
}

public Optional<Attestation> createAggregate(
final UInt64 slot, final Bytes32 attestationHashTreeRoot) {
final UInt64 slot, final Bytes32 attestationHashTreeRoot) {
final CreateAggregateAttestationRequest createAggregateAttestationRequest =
new CreateAggregateAttestationRequest(getBaseEndpoint(), getOkHttpClient(), slot, spec);
new CreateAggregateAttestationRequest(getBaseEndpoint(), getOkHttpClient(), slot, spec);
return createAggregateAttestationRequest.createAggregate(attestationHashTreeRoot);
}

public Optional<ObjectAndMetaData<Attestation>> createAggregateV2(
final UInt64 slot, final Bytes32 attestationHashTreeRoot, final UInt64 committeeIndex) {
final UInt64 slot, final Bytes32 attestationHashTreeRoot, final UInt64 committeeIndex) {
CreateAggregateAttestationRequestV2 createAggregateAttestationRequestV2 =
new CreateAggregateAttestationRequestV2(getBaseEndpoint(), getOkHttpClient(), spec, slot);
new CreateAggregateAttestationRequestV2(getBaseEndpoint(), getOkHttpClient(), spec, slot);
return createAggregateAttestationRequestV2.createAggregate(
attestationHashTreeRoot, committeeIndex);
attestationHashTreeRoot, committeeIndex);
}
}

0 comments on commit e0ae844

Please sign in to comment.