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