Skip to content

Commit

Permalink
fix: error messages linter
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Aug 16, 2024
1 parent 775ed74 commit 78779d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/ulxly/ulxly.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,10 +828,10 @@ func getDeposits(bridgeServiceDepositsEndpoint string) (globalIndex *big.Int, or
if intDepositCnt == intClaimIndex { // deposit_cnt must match the user's input value
if !bridgeDeposit.Deposit[index].ReadyForClaim {
log.Error().Msg("The claim transaction is not yet ready to be claimed. Try again in a few blocks.")
return nil, common.HexToAddress("0x0"), nil, nil, errors.New("The claim transaction is not yet ready to be claimed. Try again in a few blocks.")
return nil, common.HexToAddress("0x0"), nil, nil, errors.New("the claim transaction is not yet ready to be claimed, try again in a few blocks")
} else if bridgeDeposit.Deposit[index].ClaimTxHash != "" {
log.Info().Str("claimTxHash", bridgeDeposit.Deposit[index].ClaimTxHash).Msg("The claim transaction has already been claimed")
return nil, common.HexToAddress("0x0"), nil, nil, errors.New("The claim transaction has already been claimed.")
return nil, common.HexToAddress("0x0"), nil, nil, errors.New("the claim transaction has already been claimed")
}
originAddress = common.HexToAddress(bridgeDeposit.Deposit[index].OrigAddr)
globalIndex.SetString(bridgeDeposit.Deposit[index].GlobalIndex, 10)
Expand All @@ -842,7 +842,7 @@ func getDeposits(bridgeServiceDepositsEndpoint string) (globalIndex *big.Int, or
}
defer reqBridgeDeposits.Body.Close()

return nil, common.HexToAddress("0x0"), nil, nil, errors.New("Failed to correctly get deposits...")
return nil, common.HexToAddress("0x0"), nil, nil, errors.New("failed to correctly get deposits")
}

func checkGetDepositArgs(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit 78779d1

Please sign in to comment.