Beispiel #1
0
        // ReSharper disable once InconsistentNaming
        public async Task ICallTryGetVASPCodeAsyncMethodOfVASPIndexClient(
            string vaspContractAddress,
            int minimalConfirmationLevel)
        {
            var vaspIndex       = _scenarioContext.GetContractByType <VASPIndex>();
            var vaspIndexClient = new VASPIndexClient
                                  (
                vaspIndex.RealAddress,
                _estimateGasPriceStrategy,
                _web3
                                  );

            var callResult = await vaspIndexClient.TryGetVASPCodeAsync
                             (
                vaspContractAddress : _scenarioContext.GetRealContractAddress(vaspContractAddress),
                minimalConfirmationLevel : new ConfirmationLevel(minimalConfirmationLevel)
                             );

            _scenarioContext.SetCallResult(callResult);
        }