protected virtual async Task <HexBigInteger> GetOrEstimateMaximumGasAsync(
     TContractDeploymentMessage deploymentMessage,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     return(deploymentMessage.GetHexMaximumGas()
            ?? await _deploymentEstimatorHandler.EstimateGasAsync(deploymentMessage,
                                                                  cancellationToken).ConfigureAwait(false));
 }
Exemplo n.º 2
0
 protected virtual async Task <HexBigInteger> GetOrEstimateMaximumGasAsync(
     TContractDeploymentMessage deploymentMessage)
 {
     return(deploymentMessage.GetHexMaximumGas()
            ?? await _deploymentEstimatorHandler.EstimateGasAsync(deploymentMessage).ConfigureAwait(false));
 }
 public Task <HexBigInteger> EstimateGasAsync(TContractDeploymentMessage contractDeploymentMessage)
 {
     return(_estimatorHandler.EstimateGasAsync(contractDeploymentMessage));
 }
Exemplo n.º 4
0
 public Task <HexBigInteger> EstimateGasAsync(TContractDeploymentMessage contractDeploymentMessage,
                                              CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_estimatorHandler.EstimateGasAsync(contractDeploymentMessage,
                                               cancellationToken));
 }