Skip to content

Commit

Permalink
Fix spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
  • Loading branch information
Gabriel-Trintinalia committed Sep 15, 2023
1 parent 8b053b4 commit 414d7e6
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
import org.hyperledger.besu.ethereum.transaction.TransactionSimulator;
import org.hyperledger.besu.ethereum.vm.DebugOperationTracer;

import java.util.Optional;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Optional;

public class DebugTraceCall extends AbstractTraceCall {
private static final Logger LOG = LoggerFactory.getLogger(DebugTraceCall.class);

Expand All @@ -58,18 +58,18 @@ protected TraceOptions getTraceOptions(final JsonRpcRequestContext requestContex
.orElse(TraceOptions.DEFAULT);
}

@Override
protected BlockParameter blockParameter(final JsonRpcRequestContext request) {
final Optional<BlockParameter> maybeBlockParameter =
request.getOptionalParameter(1, BlockParameter.class);

if (maybeBlockParameter.isPresent()) {
return maybeBlockParameter.get();
}
@Override
protected BlockParameter blockParameter(final JsonRpcRequestContext request) {
final Optional<BlockParameter> maybeBlockParameter =
request.getOptionalParameter(1, BlockParameter.class);

return BlockParameter.LATEST;
if (maybeBlockParameter.isPresent()) {
return maybeBlockParameter.get();
}

return BlockParameter.LATEST;
}

@Override
protected PreCloseStateHandler<Object> getSimulatorResultHandler(
final JsonRpcRequestContext requestContext, final DebugOperationTracer tracer) {
Expand Down

0 comments on commit 414d7e6

Please sign in to comment.