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

            var callResult = await vaspIndexClient.GetVASPContractAddressAsync
                             (
                vaspCode : VASPCode.Parse(vaspCode),
                minimalConfirmationLevel : new ConfirmationLevel(minimalConfirmationLevel)
                             );

            _scenarioContext.SetCallResult(callResult);
        }