internal static ClaimReference FromContract(Contracts.Reference reference) { Debug.Assert(reference != null); var inst = new ClaimReference(); inst.LoadFromContract(reference); return(inst); }
internal void LoadFromContract(Contracts.Reference reference) { Debug.Assert(reference != null); _Snaks.Clear(); if (reference.Snaks != null) { _Snaks.AddRange(Claim.EnumWithOrder(reference.Snaks, reference.SnaksOrder).Select(Snak.FromContract)); } Hash = reference.Hash; }