private void ConvertThroughProto(TransactionTree source) { Com.Daml.Ledger.Api.V1.TransactionTree protoValue = source.ToProto(); TransactionTree target = TransactionTree.FromProto(protoValue); Assert.True(source == target); }
private void ParseTransactions() { _transactions = new TransactionTree(); while (NextFrame() == FrameType.IndexedTransaction) { var tr = _reader.ReadTransactionResult(_ledger.LedgerIndex); _transactions.Add(tr); _reader.ReadOneInt(); ParseAndApplyAccountStateDiff(); } }