public override int GetHashCode() { var hashCode = 1537752341; hashCode = hashCode * -1521134295 + BillCode.GetHashCode(); hashCode = hashCode * -1521134295 + LeaseId.GetHashCode(); hashCode = hashCode * -1521134295 + AmountOffset.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Reason); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DocumentRef); return(hashCode); }
public override byte[] GetBody() { using (var stream = new MemoryStream()) using (var writer = new BinaryWriter(stream)) { writer.Write(TransactionType.LeaseCancel); writer.Write(SenderPublicKey); writer.WriteLong(Assets.ZBS.AmountToLong(Fee)); writer.WriteLong(Timestamp.ToLong()); writer.Write(LeaseId.FromBase58()); return(stream.ToArray()); } }
public override int GetHashCode() => LeaseId.GetHashCode();