You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Requesting eth_estimateGas method from JSON RPC endpoint throws "Expected a positive number and got -13995787", if from parameter is missing in the data. In other hand, if from is added, no such exception arise. I cannot reproduce error throwing with missing from param with other JSON RPC clients.
Steps to Reproduce
In order to replicate the behavior, please provide a detailed list of steps:
Try making this request on ETH Sepolia JSON RPC endpoint:
{"jsonrpc":"2.0","error":{"code":-32602,"message":"Expected a positive number and got -13995787 (Parameter \u0027a\u0027)","data":"System.ArgumentException: Expected a positive number and got -13995787 (Parameter \u0027a\u0027)\n at Nethermind.Int256.UInt256.op_Explicit(Int64 a)\n at Nethermind.JsonRpc.Modules.Eth.EthRpcModule.EstimateGasTxExecutor.ExecuteTx(BlockHeader header, Transaction tx, CancellationToken token) in /src/Nethermind/Nethermind.JsonRpc/Modules/Eth/EthRpcModule.TransactionExecutor.cs:line 121\n at Nethermind.JsonRpc.Modules.Eth.EthRpcModule.TxExecutor\u00601.ExecuteTx(TransactionForRpc transactionCall, BlockParameter blockParameter) in /src/Nethermind/Nethermind.JsonRpc/Modules/Eth/EthRpcModule.TransactionExecutor.cs:line 69\n at System.Reflection.MethodInvoker.InvokeImpl(Object obj, Object arg1, Object arg2, Object arg3, Object arg4)\n at System.Reflection.MethodInvoker.Invoke(Object obj, Span\u00601 arguments)\n at Nethermind.JsonRpc.JsonRpcService.ExecuteAsync(JsonRpcRequest request, String methodName, ResolvedMethodInfo method, JsonRpcContext context) in /src/Nethermind/Nethermind.JsonRpc/JsonRpcService.cs:line 169"},"id":0}
Expected behavior
Request shouldn't throw an error.
Screenshots
If applicable, please include screenshots to help illustrate the problem.
Desktop (please complete the following information):
Please provide the following information regarding your setup:
Description
Requesting
eth_estimateGas
method from JSON RPC endpoint throws "Expected a positive number and got -13995787", iffrom
parameter is missing in thedata
. In other hand, iffrom
is added, no such exception arise. I cannot reproduce error throwing with missingfrom
param with other JSON RPC clients.Steps to Reproduce
In order to replicate the behavior, please provide a detailed list of steps:
Try making this request on ETH Sepolia JSON RPC endpoint:
Actual behavior
Expected behavior
Request shouldn't throw an error.
Screenshots
If applicable, please include screenshots to help illustrate the problem.
Desktop (please complete the following information):
Please provide the following information regarding your setup:
Additional context
Please provide any additional context about the problem.
Logs
Please include any relevant logs that may help identify the issue.
The text was updated successfully, but these errors were encountered: