Esempio n. 1
0
        protected async Task DeployWatchdogsAsync()
        {
            string transactionHash = await WatchdogService.DeployContractAsync(
                Web3, AddressFrom, new string[] { AddressFrom }, new BigInteger(1), new HexBigInteger(3905820));

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

            Watchdogs = new WatchdogService(Web3, receipt.ContractAddress);
        }
Esempio n. 2
0
        private async Task DeployWatchdogsAsync()
        {
            string transactionHash = await WatchdogService.DeployContractAsync(
                Web3, AddressFrom, new string[] { AddressFrom, AddressFrom2 },
                new BigInteger(2), new HexBigInteger(3905820));

            Assert.NotNull(transactionHash);

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

            Watchdogs = new WatchdogService(Web3, receipt.ContractAddress);

            transactionHash = await IDController.SetWatchDogsAsync(AddressFrom, Watchdogs.GetAddress(), new HexBigInteger(3905820));

            Assert.NotNull(transactionHash);
        }