diff --git a/core/address.go b/core/address.go index 368711e..fa9a10e 100644 --- a/core/address.go +++ b/core/address.go @@ -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 = "" } }() diff --git a/core/tx.go b/core/tx.go index d44e30c..3492ae6 100644 --- a/core/tx.go +++ b/core/tx.go @@ -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) } @@ -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) } diff --git a/cosmos/modules/ibc/types.go b/cosmos/modules/ibc/types.go index 90a2eca..78fb0bc 100644 --- a/cosmos/modules/ibc/types.go +++ b/cosmos/modules/ibc/types.go @@ -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" @@ -60,7 +59,7 @@ type WrapperMsgRecvPacket struct { Sequence uint64 SenderAddress string ReceiverAddress string - Amount math.Int + Amount sdkMath.Int Denom string } @@ -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 diff --git a/rpc/requests.go b/rpc/requests.go index 741426a..53de2d4 100644 --- a/rpc/requests.go +++ b/rpc/requests.go @@ -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 }