コード例 #1
0
        public void TestConversion()
        {
            var contract = ElectionContractFactory.CreateContract();

            var contractConverter = new ContractConverter(contract);

            contractConverter.ConvertContract();
            var solidityCode = contractConverter.GetSolidityCode();

            System.IO.File.WriteAllText(@"../../../../DasContract.CaseStudies/elections/elections.sol", solidityCode);
        }
コード例 #2
0
        public void TestConversion()
        {
            var contract = ElectionContractFactory.CreateContract();

            Console.WriteLine(contract.ToXElement().ToString());

            /*
             * var contractConverter = new ContractConverter(contract);
             * contractConverter.ConvertContract();
             * var solidityCode = contractConverter.GetSolidityCode();
             *
             * System.IO.File.WriteAllText(@"../../../../DasContract.CaseStudies/elections/elections.sol", solidityCode);
             */
        }