Skip to content

Commit

Permalink
make changing of voting period open for only_owner
Browse files Browse the repository at this point in the history
  • Loading branch information
ccorcoveanu committed Dec 5, 2022
1 parent 2e9452e commit a6a2690
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions energy-integration/governance-v2/src/configurable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ pub trait ConfigurablePropertiesModule: energy_query::EnergyQueryModule {
self.try_change_voting_delay_in_blocks(new_value);
}

#[only_owner]
#[endpoint(changeVotingPeriodInBlocks)]
fn change_voting_period_in_blocks(&self, new_value: u64) {
self.require_caller_self();

self.try_change_voting_period_in_blocks(new_value);
}

Expand Down

0 comments on commit a6a2690

Please sign in to comment.