Exemple #1
0
        internal async Task managementVoteAsync(string privateKey, bool accept, List <string> responsibleParties, string voteInfo)
        {
            ManagementVoteFunction managementFunction = new ManagementVoteFunction();

            managementFunction.GitHash            = gitHashByte;
            managementFunction.AcceptChange       = accept;
            managementFunction.ResponsibleParties = responsibleParties;
            managementFunction.VoteInfo           = voteInfo;

            Web3 web3 = new Web3(new Account(privateKey));

            ChangeManagerService managementService = new ChangeManagerService(web3, this.contractAddress);

            await managementService.ManagementVoteRequestAsync(managementFunction);
        }