Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.21
go-version: 1.24
- name: Create a file with all core Cosmos SDK pkgs
run: go list ./... > pkgs.txt
- name: Split pkgs into 10 files
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
- uses: actions/setup-python@v3
- uses: actions/setup-go@v3
with:
go-version: 1.21
go-version: 1.24
- uses: technote-space/get-diff-action@v6.1.0
with:
PATTERNS: |
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.21
go-version: 1.24

# Download all coverage reports from the 'tests' job
- name: Download coverage reports
Expand Down
4 changes: 2 additions & 2 deletions crypto/hd/hdpath_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func TestDeriveHDPathRange(t *testing.T) {
}
}

func ExampleStringifyPathParams() {
func ExampleNewParams() {
path := hd.NewParams(44, 0, 0, false, 0)
fmt.Println(path.String())
path = hd.NewParams(44, 33, 7, true, 9)
Expand All @@ -196,7 +196,7 @@ func ExampleStringifyPathParams() {
// m/44'/33'/7'/1/9
}

func ExampleSomeBIP32TestVecs() {
func ExampleComputeMastersFromSeed() {
seed := mnemonicToSeed("barrel original fuel morning among eternal " +
"filter ball stove pluck matrix mechanic")
master, ch := hd.ComputeMastersFromSeed(seed)
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
go 1.21

module github.com/cosmos/cosmos-sdk

go 1.24.5

require (
cosmossdk.io/errors v1.0.0
github.com/99designs/keyring v1.2.1
Expand Down
7 changes: 3 additions & 4 deletions server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"context"
"fmt"
"net/http"
//nolint:gosec,G108
_ "net/http/pprof"
"os"
"path"
"runtime/pprof"
Expand All @@ -25,9 +27,6 @@ import (
"go.opentelemetry.io/otel/sdk/trace"
"google.golang.org/grpc"

//nolint:gosec,G108
_ "net/http/pprof"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/codec"
Expand Down Expand Up @@ -310,7 +309,7 @@ func startStandAlone(ctx *Context, appCreator types.AppCreator) error {
goCtx, cancel := context.WithCancel(context.Background())
err = svr.Start(goCtx)
if err != nil {
fmt.Printf(err.Error() + "\n")
fmt.Println(err.Error())
os.Exit(1)
}

Expand Down
2 changes: 1 addition & 1 deletion x/auth/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func DeductFees(bankKeeper types.BankKeeper, ctx sdk.Context, acc types.AccountI

err := bankKeeper.DeferredSendCoinsFromAccountToModule(ctx, acc.GetAddress(), types.FeeCollectorName, fees)
if err != nil {
return sdkerrors.Wrapf(sdkerrors.ErrInsufficientFunds, err.Error())
return sdkerrors.Wrapf(sdkerrors.ErrInsufficientFunds, "%s", err.Error())
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion x/auth/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (ak AccountKeeper) Account(c context.Context, req *types.QueryAccountReques

any, err := codectypes.NewAnyWithValue(account)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
return nil, status.Errorf(codes.Internal, "%s", err.Error())
}

return &types.QueryAccountResponse{Account: any}, nil
Expand Down
8 changes: 4 additions & 4 deletions x/authz/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (k Keeper) Grants(c context.Context, req *authz.QueryGrantsRequest) (*authz
}
authorizationAny, err := codectypes.NewAnyWithValue(authorization)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
return nil, status.Errorf(codes.Internal, "%s", err.Error())
}
return &authz.QueryGrantsResponse{
Grants: []*authz.Grant{{
Expand All @@ -61,7 +61,7 @@ func (k Keeper) Grants(c context.Context, req *authz.QueryGrantsRequest) (*authz

authorizationAny, err := codectypes.NewAnyWithValue(auth1)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
return nil, status.Errorf(codes.Internal, "%s", err.Error())
}
return &authz.Grant{
Authorization: authorizationAny,
Expand Down Expand Up @@ -103,7 +103,7 @@ func (k Keeper) GranterGrants(c context.Context, req *authz.QueryGranterGrantsRe

any, err := codectypes.NewAnyWithValue(auth1)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
return nil, status.Errorf(codes.Internal, "%s", err.Error())
}

grantee := firstAddressFromGrantStoreKey(key)
Expand Down Expand Up @@ -155,7 +155,7 @@ func (k Keeper) GranteeGrants(c context.Context, req *authz.QueryGranteeGrantsRe

authorizationAny, err := codectypes.NewAnyWithValue(auth1)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
return nil, status.Errorf(codes.Internal, "%s", err.Error())
}

return &authz.GrantAuthorization{
Expand Down
2 changes: 1 addition & 1 deletion x/capability/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (sk ScopedKeeper) NewCapability(ctx sdk.Context, name string) (*types.Capab
store := ctx.KVStore(sk.storeKey)

if _, ok := sk.GetCapability(ctx, name); ok {
return nil, sdkerrors.Wrapf(types.ErrCapabilityTaken, fmt.Sprintf("module: %s, name: %s", sk.module, name))
return nil, sdkerrors.Wrapf(types.ErrCapabilityTaken, "module: %s, name: %s", sk.module, name)
}

// create new capability with the current global index
Expand Down
2 changes: 1 addition & 1 deletion x/capability/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (co *CapabilityOwners) Set(owner Owner) error {
i, ok := co.Get(owner)
if ok {
// owner already exists at co.Owners[i]
return sdkerrors.Wrapf(ErrOwnerClaimed, owner.String())
return sdkerrors.Wrapf(ErrOwnerClaimed, "%s", owner.String())
}

// owner does not exist in the set of owners, so we insert at position i
Expand Down
2 changes: 1 addition & 1 deletion x/evidence/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (k Keeper) Evidence(c context.Context, req *types.QueryEvidenceRequest) (*t

evidenceAny, err := codectypes.NewAnyWithValue(msg)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
return nil, status.Errorf(codes.Internal, "%s", err.Error())
}

return &types.QueryEvidenceResponse{Evidence: evidenceAny}, nil
Expand Down
4 changes: 2 additions & 2 deletions x/feegrant/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (q Keeper) Allowance(c context.Context, req *feegrant.QueryAllowanceRequest

feeAllowance, err := q.GetAllowance(ctx, granterAddr, granteeAddr)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
return nil, status.Errorf(codes.Internal, "%s", err.Error())
}

msg, ok := feeAllowance.(proto.Message)
Expand All @@ -46,7 +46,7 @@ func (q Keeper) Allowance(c context.Context, req *feegrant.QueryAllowanceRequest

feeAllowanceAny, err := codectypes.NewAnyWithValue(msg)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
return nil, status.Errorf(codes.Internal, "%s", err.Error())
}

return &feegrant.QueryAllowanceResponse{
Expand Down
8 changes: 1 addition & 7 deletions x/genutil/collect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package genutil_test

import (
"encoding/json"
"io/ioutil"
"os"
"path/filepath"
"testing"
Expand Down Expand Up @@ -38,12 +37,7 @@ func (dni *doNothingIterator) IterateGenesisBalances(_ codec.JSONCodec, _ map[st
// Ensures that CollectTx correctly traverses directories and won't error out on encountering
// a directory during traversal of the first level. See issue https://github.com/cosmos/cosmos-sdk/issues/6788.
func TestCollectTxsHandlesDirectories(t *testing.T) {
testDir, err := ioutil.TempDir(os.TempDir(), "testCollectTxs")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(testDir)

testDir := t.TempDir()
// 1. We'll insert a directory as the first element before JSON file.
subDirPath := filepath.Join(testDir, "_adir")
if err := os.MkdirAll(subDirPath, 0755); err != nil {
Expand Down
Loading