Skip to content

Commit

Permalink
move the trigger genesis func to another file
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed May 24, 2024
1 parent 162da5d commit 6adeb66
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 0 additions & 7 deletions x/rollapp/keeper/msg_server.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package keeper

import (
"context"

"github.com/dymensionxyz/dymension/v3/x/rollapp/types"
)

Expand All @@ -17,8 +15,3 @@ func NewMsgServerImpl(keeper Keeper) types.MsgServer {
}

var _ types.MsgServer = msgServer{}

func (k msgServer) TriggerGenesisEvent(context.Context, *types.MsgRollappGenesisEvent) (*types.MsgRollappGenesisEventResponse, error) {
// TODO: return not implemented or deprecated error
return &types.MsgRollappGenesisEventResponse{}, nil
}
14 changes: 14 additions & 0 deletions x/rollapp/keeper/msg_server_trigger_genesis.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package keeper

import (
"context"

"github.com/dymensionxyz/dymension/v3/x/rollapp/types"
)

// TriggerGenesisEvent noops
// Deprecated
func (k msgServer) TriggerGenesisEvent(context.Context, *types.MsgRollappGenesisEvent) (*types.MsgRollappGenesisEventResponse, error) {
// TODO: return not implemented or deprecated error
return &types.MsgRollappGenesisEventResponse{}, nil
}

0 comments on commit 6adeb66

Please sign in to comment.