Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Nov 20, 2024
1 parent b41aa7a commit 90d7a95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions staker/stakerapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion stakerservice/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 90d7a95

Please sign in to comment.