Skip to content

Commit 44746a8

Browse files
committed
Allow editing of duration_before
1 parent 1735688 commit 44746a8

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

contracts/arena-competition-enrollment/src/contract.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ pub fn execute(
9595
description,
9696
date,
9797
duration,
98+
duration_before,
9899
banner,
99100
min_members,
100101
max_members,
@@ -114,6 +115,7 @@ pub fn execute(
114115
max_members,
115116
use_dao_host,
116117
required_team_size,
118+
duration_before,
117119
),
118120
ExecuteMsg::MigrateEscrow {
119121
id,

contracts/arena-competition-enrollment/src/execute.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ pub fn edit_enrollment(
952952
max_members: Option<Uint64>,
953953
use_dao_host: Option<DaoConfig>,
954954
required_team_size: Option<u32>,
955+
duration_before: Option<u64>,
955956
) -> Result<Response, ContractError> {
956957
// Load the enrollment entry
957958
let mut enrollment = enrollment_entries().load(deps.storage, id.u128())?;
@@ -1069,6 +1070,9 @@ pub fn edit_enrollment(
10691070
if let Some(new_required_team_size) = required_team_size {
10701071
enrollment.required_team_size = Some(new_required_team_size);
10711072
}
1073+
if let Some(new_duration_before) = duration_before {
1074+
enrollment.duration_before = new_duration_before;
1075+
}
10721076

10731077
// Save the updated enrollment entry
10741078
enrollment_entries().save(deps.storage, id.u128(), &enrollment)?;

contracts/arena-competition-enrollment/src/msg.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ pub enum ExecuteMsg {
6767
description: Option<String>,
6868
date: Option<Timestamp>,
6969
duration: Option<u64>,
70+
duration_before: Option<u64>,
7071
banner: Option<String>,
7172
min_members: Option<Uint64>,
7273
max_members: Option<Uint64>,

scripts/state.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"neutron": {
33
"neutron-1": {
44
"code_ids": {
5-
"arena_competition_enrollment": 3381,
5+
"arena_competition_enrollment": 3423,
66
"arena_core": 3187,
77
"arena_discord_identity": 2926,
88
"arena_escrow": 3382,

0 commit comments

Comments
 (0)