Esempio n. 1
0
 protected async Task <HexBigInteger> EstimateGasFromEncAsync(CallInput callInput)
 {
     try
     {
         return
             (await
              TransactionManager.EstimateGasAsync(callInput)
              .ConfigureAwait(false));
     }
     catch (RpcResponseException rpcException)
     {
         ContractRevertExceptionHandler.HandleContractRevertException(rpcException);
         throw;
     }
 }
Esempio n. 2
0
 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;
     }
 }