From 654da94f433f2943870a9b18f4e55ee2ec43089e Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Tue, 13 Feb 2024 13:20:41 -0800 Subject: [PATCH] testutil: fix lint errors --- testutil/wallet.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testutil/wallet.go b/testutil/wallet.go index f902a55..670ad2b 100644 --- a/testutil/wallet.go +++ b/testutil/wallet.go @@ -29,9 +29,9 @@ type ( } ) -func (et *ephemeralWalletUpdateTxn) WalletStateElements() (eles []types.StateElement, _ error) { +func (et *ephemeralWalletUpdateTxn) WalletStateElements() (elements []types.StateElement, _ error) { for _, se := range et.store.utxos { - eles = append(eles, se.StateElement) + elements = append(elements, se.StateElement) } return } @@ -133,6 +133,7 @@ func (es *EphemeralWalletStore) Tip() (types.ChainIndex, error) { return es.tip, nil } +// ProcessChainApplyUpdate implements chain.Subscriber. func (es *EphemeralWalletStore) ProcessChainApplyUpdate(cau *chain.ApplyUpdate, mayCommit bool) error { es.mu.Lock() defer es.mu.Unlock() @@ -153,6 +154,7 @@ func (es *EphemeralWalletStore) ProcessChainApplyUpdate(cau *chain.ApplyUpdate, return nil } +// ProcessChainRevertUpdate implements chain.Subscriber. func (es *EphemeralWalletStore) ProcessChainRevertUpdate(cru *chain.RevertUpdate) error { es.mu.Lock() defer es.mu.Unlock()