Skip to content

Commit

Permalink
chore: replace cometbft/libs/log with cosmossdk.io/log where required
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Jan 10, 2025
1 parent a44836b commit d2afb2e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion golang/cosmos/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ import (
capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
ica "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts"

"cosmossdk.io/log"
dbm "github.com/cometbft/cometbft-db"
abci "github.com/cometbft/cometbft/abci/types"
tmjson "github.com/cometbft/cometbft/libs/json"
"github.com/cometbft/cometbft/libs/log"
tmos "github.com/cometbft/cometbft/libs/os"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
icahost "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host"
Expand Down
2 changes: 1 addition & 1 deletion golang/cosmos/x/swingset/keeper/extension_snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"io"
"math"

"cosmossdk.io/log"
snapshots "cosmossdk.io/store/snapshots/types"
agoric "github.com/Agoric/agoric-sdk/golang/cosmos/types"
"github.com/Agoric/agoric-sdk/golang/cosmos/x/swingset/types"
"github.com/cometbft/cometbft/libs/log"
"github.com/cosmos/cosmos-sdk/baseapp"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"
"testing"

"github.com/cometbft/cometbft/libs/log"
"cosmossdk.io/log"
)

func newTestExtensionSnapshotter() *ExtensionSnapshotter {
Expand Down
8 changes: 3 additions & 5 deletions golang/cosmos/x/swingset/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import (
stdlog "log"
"math"

"cosmossdk.io/log"
sdkmath "cosmossdk.io/math"

"github.com/cometbft/cometbft/libs/log"

"cosmossdk.io/store/prefix"
storetypes "cosmossdk.io/store/types"
"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down Expand Up @@ -323,8 +321,8 @@ func (k Keeper) ChargeBeans(
beansToDebit := nowOwing.Sub(remainderOwing)

// Convert the debit to coins.
beansPerFeeUnitDec := sdk.NewDecFromBigInt(beansPerUnit[types.BeansPerFeeUnit].BigInt())
beansToDebitDec := sdk.NewDecFromBigInt(beansToDebit.BigInt())
beansPerFeeUnitDec := sdkmath.LegacyNewDecFromBigInt(beansPerUnit[types.BeansPerFeeUnit].BigInt())
beansToDebitDec := sdkmath.LegacyNewDecFromBigInt(beansToDebit.BigInt())
feeUnitPrice := k.GetParams(ctx).FeeUnitPrice
feeDecCoins := sdk.NewDecCoinsFromCoins(feeUnitPrice...).MulDec(beansToDebitDec).QuoDec(beansPerFeeUnitDec)

Expand Down

0 comments on commit d2afb2e

Please sign in to comment.