From 90d7a953045b4d9affff247a38f796129d63d650 Mon Sep 17 00:00:00 2001 From: RafilxTenfen Date: Tue, 19 Nov 2024 21:30:03 -0300 Subject: [PATCH] fix: lint --- staker/stakerapp.go | 7 +++---- stakerservice/service.go | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/staker/stakerapp.go b/staker/stakerapp.go index 843a624..234c591 100644 --- a/staker/stakerapp.go +++ b/staker/stakerapp.go @@ -9,7 +9,6 @@ import ( "time" "github.com/avast/retry-go/v4" - "github.com/babylonlabs-io/babylon/btcstaking" staking "github.com/babylonlabs-io/babylon/btcstaking" cl "github.com/babylonlabs-io/btc-staker/babylonclient" "github.com/babylonlabs-io/btc-staker/metrics" @@ -507,12 +506,12 @@ func (app *App) mustSetTxSpentOnBtc(hash *chainhash.Hash) { } } -// AddBTCTransactionToDbAndCheckStatus receives a BTC staking transaction that should be +// AddBTCTransactionToDBAndCheckStatus receives a BTC staking transaction that should be // already included in the BTC network -func (app *App) AddBTCTransactionToDbAndCheckStatus( +func (app *App) AddBTCTransactionToDBAndCheckStatus( stakerAddr btcutil.Address, stkTx *wire.MsgTx, - parsedStakingTx *btcstaking.ParsedV0StakingTx, + parsedStakingTx *staking.ParsedV0StakingTx, ) error { pop, err := app.createPop(stakerAddr) if err != nil { diff --git a/stakerservice/service.go b/stakerservice/service.go index 3109bc7..dc1b2d3 100644 --- a/stakerservice/service.go +++ b/stakerservice/service.go @@ -155,7 +155,7 @@ func (s *StakerService) btcDelegationFromBtcStakingTx( return nil, err } - if err := s.staker.AddBTCTransactionToDbAndCheckStatus(stakerAddr, wireStkTx, parsedStakingTx); err != nil { + if err := s.staker.AddBTCTransactionToDBAndCheckStatus(stakerAddr, wireStkTx, parsedStakingTx); err != nil { return nil, err }