protected async Task <HexBigInteger> EstimateGasFromEncAsync(CallInput callInput) { try { return (await TransactionManager.EstimateGasAsync(callInput) .ConfigureAwait(false)); } catch (RpcResponseException rpcException) { ContractRevertExceptionHandler.HandleContractRevertException(rpcException); throw; } }
public async Task <string> CallAsync(CallInput callInput, BlockParameter block = null) { try { if (block == null) { block = _defaulBlock; } return(await _ethCall.SendRequestAsync(callInput, block).ConfigureAwait(false)); } catch (RpcResponseException rpcException) { ContractRevertExceptionHandler.HandleContractRevertException(rpcException); throw; } }