Skip to content

Commit

Permalink
cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Oct 28, 2024
1 parent 4066415 commit 59ce5bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions wasmbinding/message_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"time"

contractmanagerkeeper "github.com/neutron-org/neutron/v5/x/contractmanager/keeper"
types2 "github.com/neutron-org/neutron/v5/x/contractmanager/types"

channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types"

Expand Down Expand Up @@ -1063,7 +1062,7 @@ func (m *CustomMessenger) removeSchedule(ctx sdk.Context, contractAddr sdk.AccAd
}

func (m *CustomMessenger) resubmitFailure(ctx sdk.Context, contractAddr sdk.AccAddress, resubmitFailure *bindings.ResubmitFailure) ([]sdk.Event, [][]byte, [][]*types.Any, error) {
_, err := m.ContractmanagerMsgServer.ResubmitFailure(ctx, &types2.MsgResubmitFailure{
_, err := m.ContractmanagerMsgServer.ResubmitFailure(ctx, &contractmanagertypes.MsgResubmitFailure{
Sender: contractAddr.String(),
FailureId: resubmitFailure.FailureId,
})
Expand Down
7 changes: 3 additions & 4 deletions wasmbinding/test/custom_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
admintypes "github.com/cosmos/admin-module/v2/x/adminmodule/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"

keeper2 "github.com/neutron-org/neutron/v5/x/contractmanager/keeper"
feeburnertypes "github.com/neutron-org/neutron/v5/x/feeburner/types"

ibcchanneltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types"
Expand Down Expand Up @@ -739,7 +738,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureAck() {
ack := ibcchanneltypes.Acknowledgement{
Response: &ibcchanneltypes.Acknowledgement_Result{Result: []byte("Result")},
}
payload, err := keeper2.PrepareSudoCallbackMessage(packet, &ack)
payload, err := contractmanagerkeeper.PrepareSudoCallbackMessage(packet, &ack)
require.NoError(suite.T(), err)

failureID := suite.neutron.ContractManagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String())
Expand All @@ -765,7 +764,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureAck() {
func (suite *CustomMessengerTestSuite) TestResubmitFailureTimeout() {
// Add failure
packet := ibcchanneltypes.Packet{}
payload, err := keeper2.PrepareSudoCallbackMessage(packet, nil)
payload, err := contractmanagerkeeper.PrepareSudoCallbackMessage(packet, nil)
require.NoError(suite.T(), err)

failureID := suite.neutron.ContractManagerKeeper.GetNextFailureIDKey(suite.ctx, suite.contractAddress.String())
Expand Down Expand Up @@ -795,7 +794,7 @@ func (suite *CustomMessengerTestSuite) TestResubmitFailureFromDifferentContract(
Response: &ibcchanneltypes.Acknowledgement_Error{Error: "ErrorSudoPayload"},
}
failureID := suite.neutron.ContractManagerKeeper.GetNextFailureIDKey(suite.ctx, testutil.TestOwnerAddress)
payload, err := keeper2.PrepareSudoCallbackMessage(packet, &ack)
payload, err := contractmanagerkeeper.PrepareSudoCallbackMessage(packet, &ack)
require.NoError(suite.T(), err)
suite.neutron.ContractManagerKeeper.AddContractFailure(suite.ctx, testutil.TestOwnerAddress, payload, "test error")

Expand Down

0 comments on commit 59ce5bc

Please sign in to comment.