Skip to content

Commit 991ee2c

Browse files
committed
lint and gofumpt
1 parent 63babdc commit 991ee2c

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

core/address.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func ExtractTransactionAddresses(tx tx.MergedTx) []string {
8787
func ParseSignerAddress(pubkeyString string, keytype string) (retstring string, reterror error) {
8888
defer func() {
8989
if r := recover(); r != nil {
90-
reterror = fmt.Errorf(fmt.Sprintf("Error parsing signer address into Bech32: %v", r))
90+
reterror = fmt.Errorf("error parsing signer address into Bech32: %v", r)
9191
retstring = ""
9292
}
9393
}()

core/tx.go

-2
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ func ProcessRPCBlockByHeightTXs(db *gorm.DB, cl *client.ChainClient, blockResult
353353

354354
indexerTx.AuthInfo = *txFull.AuthInfo
355355
txSigners, _, err := txFull.GetSigners(cl.Codec.Marshaler)
356-
357356
if err != nil {
358357
return nil, blockTime, fmt.Errorf("error getting signers: %v", err)
359358
}
@@ -446,7 +445,6 @@ func ProcessRPCTXs(db *gorm.DB, cl *client.ChainClient, txEventResp *cosmosTx.Ge
446445

447446
indexerTx.AuthInfo = *currTx.AuthInfo
448447
txSigners, _, err := currTx.GetSigners(cl.Codec.Marshaler)
449-
450448
if err != nil {
451449
return nil, blockTime, fmt.Errorf("error getting signers: %v", err)
452450
}

cosmos/modules/ibc/types.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"fmt"
55
"strings"
66

7-
"cosmossdk.io/math"
87
sdkMath "cosmossdk.io/math"
98
parsingTypes "github.com/DefiantLabs/cosmos-tax-cli/cosmos/modules"
109
txModule "github.com/DefiantLabs/cosmos-tax-cli/cosmos/modules/tx"
@@ -60,7 +59,7 @@ type WrapperMsgRecvPacket struct {
6059
Sequence uint64
6160
SenderAddress string
6261
ReceiverAddress string
63-
Amount math.Int
62+
Amount sdkMath.Int
6463
Denom string
6564
}
6665

@@ -138,7 +137,7 @@ type WrapperMsgAcknowledgement struct {
138137
Sequence uint64
139138
SenderAddress string
140139
ReceiverAddress string
141-
Amount math.Int
140+
Amount sdkMath.Int
142141
Denom string
143142
AckType int
144143
AckResult int

rpc/requests.go

-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ func GetBlockResultRPC(cl *lensClient.ChainClient, height int64) (*CustomBlockRe
127127

128128
// Normalize the block results
129129
res, err := NormalizeCustomBlockResults(resBlockResults)
130-
131130
if err != nil {
132131
return nil, err
133132
}

0 commit comments

Comments
 (0)