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

Set besuVersion=25.1-delivery42 and arithmetizationVersion=beta-v1.2.0-rc0 #130

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
releaseVersion=0.8.0-rc8.4
besuVersion=24.12-delivery41
arithmetizationVersion=0.8.0-rc8
releaseVersion=1.2.0-rc0
besuVersion=25.1-delivery42
arithmetizationVersion=beta-v1.2.0-rc0
besuArtifactGroup=io.consensys.linea-besu
distributionIdentifier=linea-sequencer
distributionBaseUrl=https://artifacts.consensys.net/public/linea-besu/raw/names/linea-besu.tar.gz/versions/
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import org.bouncycastle.asn1.x9.X9ECParameters;
import org.bouncycastle.crypto.params.ECDomainParameters;
import org.hyperledger.besu.crypto.SECPSignature;
import org.hyperledger.besu.datatypes.AccountOverrideMap;
import org.hyperledger.besu.datatypes.StateOverrideMap;
import org.hyperledger.besu.datatypes.Wei;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.exception.InvalidJsonRpcParameters;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.exception.InvalidJsonRpcRequestException;
Expand Down Expand Up @@ -149,7 +149,7 @@ public LineaEstimateGas.Response execute(final PluginRpcRequest request) {
}

final var callParameters = parseCallParameters(request.getParams());
final var maybeStateOverrides = getAddressAccountOverrideMap(request.getParams());
final var maybeStateOverrides = getStateOverrideMap(request.getParams());
final var minGasPrice = besuConfiguration.getMinGasPrice();
final var gasLimitUpperBound = calculateGasLimitUpperBound(callParameters, logId);
final Wei baseFee =
Expand Down Expand Up @@ -268,7 +268,7 @@ private Wei getEstimatedPriorityFee(

private Long estimateGasUsed(
final JsonCallParameter callParameters,
final Optional<AccountOverrideMap> maybeStateOverrides,
final Optional<StateOverrideMap> maybeStateOverrides,
final Transaction transaction,
final Wei baseFee,
final long logId) {
Expand Down Expand Up @@ -444,9 +444,9 @@ private void validateCallParameters(final JsonCallParameter callParameters) {
}
}

protected Optional<AccountOverrideMap> getAddressAccountOverrideMap(final Object[] params) {
protected Optional<StateOverrideMap> getStateOverrideMap(final Object[] params) {
try {
return parameterParser.optional(params, 1, AccountOverrideMap.class);
return parameterParser.optional(params, 1, StateOverrideMap.class);
} catch (JsonRpcParameter.JsonRpcParameterException e) {
throw new InvalidJsonRpcRequestException(
"Invalid account overrides parameter (index 1)", RpcErrorType.INVALID_CALL_PARAMS, e);
Expand Down
Loading