Skip to content

Commit

Permalink
testutil: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Feb 13, 2024
1 parent cd67e62 commit 654da94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testutil/wallet.go
Expand Up @@ -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
}
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 654da94

Please sign in to comment.