Skip to content

Commit

Permalink
lint and gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Sep 29, 2024
1 parent 63babdc commit 991ee2c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func ExtractTransactionAddresses(tx tx.MergedTx) []string {
func ParseSignerAddress(pubkeyString string, keytype string) (retstring string, reterror error) {
defer func() {
if r := recover(); r != nil {
reterror = fmt.Errorf(fmt.Sprintf("Error parsing signer address into Bech32: %v", r))
reterror = fmt.Errorf("error parsing signer address into Bech32: %v", r)
retstring = ""
}
}()
Expand Down
2 changes: 0 additions & 2 deletions core/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ func ProcessRPCBlockByHeightTXs(db *gorm.DB, cl *client.ChainClient, blockResult

indexerTx.AuthInfo = *txFull.AuthInfo
txSigners, _, err := txFull.GetSigners(cl.Codec.Marshaler)

if err != nil {
return nil, blockTime, fmt.Errorf("error getting signers: %v", err)
}
Expand Down Expand Up @@ -446,7 +445,6 @@ func ProcessRPCTXs(db *gorm.DB, cl *client.ChainClient, txEventResp *cosmosTx.Ge

indexerTx.AuthInfo = *currTx.AuthInfo
txSigners, _, err := currTx.GetSigners(cl.Codec.Marshaler)

if err != nil {
return nil, blockTime, fmt.Errorf("error getting signers: %v", err)
}
Expand Down
5 changes: 2 additions & 3 deletions cosmos/modules/ibc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"strings"

"cosmossdk.io/math"
sdkMath "cosmossdk.io/math"
parsingTypes "github.com/DefiantLabs/cosmos-tax-cli/cosmos/modules"
txModule "github.com/DefiantLabs/cosmos-tax-cli/cosmos/modules/tx"
Expand Down Expand Up @@ -60,7 +59,7 @@ type WrapperMsgRecvPacket struct {
Sequence uint64
SenderAddress string
ReceiverAddress string
Amount math.Int
Amount sdkMath.Int
Denom string
}

Expand Down Expand Up @@ -138,7 +137,7 @@ type WrapperMsgAcknowledgement struct {
Sequence uint64
SenderAddress string
ReceiverAddress string
Amount math.Int
Amount sdkMath.Int
Denom string
AckType int
AckResult int
Expand Down
1 change: 0 additions & 1 deletion rpc/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ func GetBlockResultRPC(cl *lensClient.ChainClient, height int64) (*CustomBlockRe

// Normalize the block results
res, err := NormalizeCustomBlockResults(resBlockResults)

if err != nil {
return nil, err
}
Expand Down

0 comments on commit 991ee2c

Please sign in to comment.