Skip to content

Commit

Permalink
Merge pull request #458 from irisnet/feature/issues_439
Browse files Browse the repository at this point in the history
bump up mods.irisnet.org/modules/htlc to cosmos-sdk v0.50.10
  • Loading branch information
mitch1024 authored Nov 21, 2024
2 parents 2406be9 + 4c530a4 commit 903540d
Show file tree
Hide file tree
Showing 24 changed files with 733 additions and 659 deletions.
126 changes: 60 additions & 66 deletions api/irismod/htlc/htlc.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion modules/htlc/abci.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package htlc

import (
"context"
"fmt"

tmbytes "github.com/cometbft/cometbft/libs/bytes"
Expand All @@ -11,7 +12,8 @@ import (
)

// BeginBlocker handles block beginning logic for HTLC
func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
func BeginBlocker(c context.Context, k keeper.Keeper) {
ctx := sdk.UnwrapSDKContext(c)
ctx = ctx.WithLogger(ctx.Logger().With("handler", "beginBlock").With("module", "irismod/htlc"))

currentBlockHeight := uint64(ctx.BlockHeight())
Expand Down
4 changes: 2 additions & 2 deletions modules/htlc/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package htlc
import (
"cosmossdk.io/core/appmodule"
"cosmossdk.io/depinject"
storetypes "cosmossdk.io/store/types"
"github.com/cosmos/cosmos-sdk/codec"
store "github.com/cosmos/cosmos-sdk/store/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"

Expand Down Expand Up @@ -42,7 +42,7 @@ type Inputs struct {

Config *modulev1.Module
Cdc codec.Codec
Key *store.KVStoreKey
Key *storetypes.KVStoreKey

AccountKeeper types.AccountKeeper
BankKeeper types.BankKeeper
Expand Down
Loading

0 comments on commit 903540d

Please sign in to comment.