public static void Test() { //Get the user cookies var test1 = DefaultConfiguration.GetContractConfig().GetSection("DefaultAccount").Value; var test2 = DefaultConfiguration.GetContractConfig().GetSection("DefaultPassword").Value; }
static FileContract() { //Get address and privatekey through session or cookie Contract = DefaultContract.InitContract(DefaultConfiguration.GetContractConfig().GetSection("DefaultAccount").Value, DefaultConfiguration.GetContractConfig().GetSection("DefaultPassword").Value, DefaultConfiguration.GetContractConfig().GetSection("ContractAbi").Value, DefaultConfiguration.GetContractConfig().GetSection("ContractAddress").Value); }