예제 #1
0
        public async Task SetupAsync()
        {
            await InitAutonomousTestAsync();

            string transactionHash = await FactoryService.DeployContractAsync(
                Web3, AddressFrom, new HexBigInteger(3905820));

            TransactionReceipt receipt = await
                                         Web3.Eth.Transactions.GetTransactionReceipt.
                                         SendRequestAsync(transactionHash);

            _factory = new FactoryService(Web3, receipt.ContractAddress);
        }