Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling errors in Web3jClient.java #119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions flink/runner/src/main/java/com/chainbase/evm/Web3jClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public class Web3jClient {
private static final int BATCH_CALL_LIMIT = 100;

private final Web3j web3j;
private final Web3jService web3Serivce;
private final Web3jService web3Service;

private final int retryNumber;

Expand All @@ -152,8 +152,8 @@ public Web3jClient(String nodeURL, boolean ignoreWeb3jIOException) {

public Web3jClient(
String nodeURL, int retryNumber, int retryIntervalMs, boolean ignoreWeb3jIOException) {
this.web3Serivce = new HttpService(nodeURL);
this.web3j = Web3j.build(web3Serivce);
this.web3Service = new HttpService(nodeURL);
this.web3j = Web3j.build(web3Service);
this.retryNumber = retryNumber;
this.retryIntervalMs = retryIntervalMs;
this.ignoreWeb3jIOException = ignoreWeb3jIOException;
Expand Down Expand Up @@ -590,7 +590,7 @@ private static class DynamicResponse extends Response<Object> {

public Request<?, ? extends Response<?>> rpcRequest(String functionName, Object... params) {
return new Request<>(
functionName, Arrays.asList(params), this.web3Serivce, DynamicResponse.class);
functionName, Arrays.asList(params), this.web3Service, DynamicResponse.class);
}

public Optional<TraceBlockResponse> debugTraceBlockByNumber(
Expand All @@ -602,7 +602,7 @@ public Optional<TraceBlockResponse> debugTraceBlockByNumber(
new Request<>(
"debug_traceBlockByNumber",
Arrays.asList(blockParameter.getValue(), params),
this.web3Serivce,
this.web3Service,
TraceBlockResponse.class);
return tryRequest(request::send);
}
Expand All @@ -613,7 +613,7 @@ public Optional<BlockBalanceChangeResponse> getBalanceChangesInBlock(
new Request<>(
"erigon_getBalanceChangesInBlock",
Collections.singletonList(blockParameter.getValue()),
this.web3Serivce,
this.web3Service,
BlockBalanceChangeResponse.class);
return this.sendWithLimitedRetry(request);
}
Expand Down