From 6d6f40dc1a9cb242628ccb2b9a06541e1d6292c9 Mon Sep 17 00:00:00 2001 From: Tokyo Date: Tue, 16 Apr 2019 18:58:01 -0300 Subject: [PATCH] remove deprecated fields --- account.go | 7 +++---- watcher.go | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/account.go b/account.go index 9eedcbd..ac6a863 100644 --- a/account.go +++ b/account.go @@ -99,10 +99,9 @@ func newAccountFromHorizon(ha horizon.Account) *Account { account.Signers = []Signer{} for _, s := range ha.Signers { signer := Signer{ - PublicKey: s.PublicKey, - Weight: s.Weight, - Key: s.Key, - Type: s.Type, + Weight: s.Weight, + Key: s.Key, + Type: s.Type, } account.Signers = append(account.Signers, signer) } diff --git a/watcher.go b/watcher.go index cb82650..dcc9484 100644 --- a/watcher.go +++ b/watcher.go @@ -47,7 +47,7 @@ func (ms *MicroStellar) WatchLedgers(options ...*Options) (*LedgerWatcher, error } err := params.tx.GetClient().StreamLedgers(params.ctx, params.cursor, func(ledger horizon.Ledger) { - debugf("WatchLedger", "entry (%s) total_coins: %s, tx_count: %v, op_count: %v", ledger.ID, ledger.TotalCoins, ledger.TransactionCount, ledger.OperationCount) + debugf("WatchLedger", "entry (%s) total_coins: %s, op_count: %v", ledger.ID, ledger.TotalCoins, ledger.OperationCount) l := Ledger(ledger) w.Ch <- &l })