Esempio n. 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);
        }
Esempio n. 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);
             */
        }