Skip to content

Commit

Permalink
fix lint issues with imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Sep 12, 2023
1 parent b515822 commit 98fdfe1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions x/ibchooks/marker_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"

sdkerrors "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"

sdktypes "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
Expand All @@ -15,7 +15,6 @@ import (
ibcexported "github.com/cosmos/ibc-go/v6/modules/core/exported"

markerkeeper "github.com/provenance-io/provenance/x/marker/keeper"
"github.com/provenance-io/provenance/x/marker/types"
markertypes "github.com/provenance-io/provenance/x/marker/types"
)

Expand All @@ -41,7 +40,7 @@ func (h MarkerHooks) OnRecvPacketOverride(im IBCMiddleware, ctx sdktypes.Context

ibcDenom := MustExtractDenomFromPacketOnRecv(packet)
if strings.HasPrefix(ibcDenom, "ibc/") {
markerAddress, err := types.MarkerAddress(ibcDenom)
markerAddress, err := markertypes.MarkerAddress(ibcDenom)
if err != nil {
//TODO: emit some kind of event, proceed as normal
return im.App.OnRecvPacket(ctx, packet, relayer)
Expand All @@ -57,9 +56,9 @@ func (h MarkerHooks) OnRecvPacketOverride(im IBCMiddleware, ctx sdktypes.Context
//TODO: emit some kind of event, proceed as normal
return im.App.OnRecvPacket(ctx, packet, relayer)
}
marker = types.NewMarkerAccount(
marker = markertypes.NewMarkerAccount(
authtypes.NewBaseAccountWithAddress(markertypes.MustGetMarkerAddress(ibcDenom)),
sdk.NewInt64Coin(ibcDenom, amount),
sdktypes.NewInt64Coin(ibcDenom, amount),
nil,
nil,
markertypes.StatusActive,
Expand Down Expand Up @@ -98,7 +97,7 @@ func (h MarkerHooks) SendPacketOverride(
return i.channel.SendPacket(ctx, chanCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, data)
}

markerAddress, err := types.MarkerAddress(ics20Packet.Denom)
markerAddress, err := markertypes.MarkerAddress(ics20Packet.Denom)
if err != nil {
return i.channel.SendPacket(ctx, chanCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, data)
}
Expand Down

0 comments on commit 98fdfe1

Please sign in to comment.