Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions proto/secret/cron/schedule.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ message Schedule {
repeated MsgExecuteContract msgs = 3 [(gogoproto.nullable) = false];
// Last execution's block height
uint64 last_execute_height = 4;
// Stage when messages will be executed
// ExecutionStage execution_stage = 5;
}

// Defines the contract and the message to pass
Expand Down
2 changes: 0 additions & 2 deletions proto/secret/cron/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ message MsgAddSchedule {
uint64 period = 3;
// Msgs that will be executed every certain number of blocks, specified in the `period` field
repeated MsgExecuteContract msgs = 4 [(gogoproto.nullable) = false];
// Stage when messages will be executed
ExecutionStage execution_stage = 5;
}

// Defines the response structure for executing a MsgAddSchedule message.
Expand Down
14 changes: 4 additions & 10 deletions x/cron/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func TestMsgAddScheduleValidate(t *testing.T) {
Msg: "msg",
},
},
ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER,
},
"authority is invalid",
},
Expand All @@ -49,7 +48,6 @@ func TestMsgAddScheduleValidate(t *testing.T) {
Msg: "msg",
},
},
ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER,
},
"authority is invalid",
},
Expand All @@ -65,7 +63,6 @@ func TestMsgAddScheduleValidate(t *testing.T) {
Msg: "msg",
},
},
ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER,
},
"name is invalid",
},
Expand All @@ -81,18 +78,16 @@ func TestMsgAddScheduleValidate(t *testing.T) {
Msg: "msg",
},
},
ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER,
},
"period is invalid",
},
{
"empty msgs",
types.MsgAddSchedule{
Authority: k.GetAuthority(),
Name: "name",
Period: 3,
Msgs: []types.MsgExecuteContract{},
ExecutionStage: types.ExecutionStage_EXECUTION_STAGE_BEGIN_BLOCKER,
Authority: k.GetAuthority(),
Name: "name",
Period: 3,
Msgs: []types.MsgExecuteContract{},
},
"msgs should not be empty",
},
Expand All @@ -108,7 +103,6 @@ func TestMsgAddScheduleValidate(t *testing.T) {
Msg: "msg",
},
},
ExecutionStage: 7,
},
"execution stage is invalid",
},
Expand Down
4 changes: 0 additions & 4 deletions x/cron/types/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ func (msg *MsgAddSchedule) Validate() error {
return errors.Wrap(sdkerrors.ErrInvalidRequest, "msgs should not be empty")
}

if _, ok := ExecutionStage_name[int32(msg.ExecutionStage)]; !ok {
return errors.Wrap(sdkerrors.ErrInvalidRequest, "execution stage is invalid")
}

return nil
}

Expand Down
107 changes: 34 additions & 73 deletions x/cron/types/tx.pb.go

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

Loading