Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: sczembor <[email protected]>
  • Loading branch information
amityadav0 and sczembor authored Sep 22, 2023
1 parent 5ce9f56 commit 2fbe344
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions astra/src/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub struct Policy {
pub proposal_bond: U128,
/// Expiration period for proposals.
pub proposal_period: U64,
/// Proposal can be executed only after cooldown period is complete( in milliseconds )
/// The execution of the proposal can only occur once the cooldown period has elapsed (measured in milliseconds).
pub cooldown: U64,
/// Bond for claiming a bounty.
pub bounty_bond: U128,
Expand Down Expand Up @@ -277,9 +277,9 @@ impl Policy {
if parameters.proposal_period.is_some() {
self.proposal_period = parameters.proposal_period.unwrap();
}
if parameters.cooldown.is_some() {
self.cooldown = parameters.cooldown.unwrap();
}
if let Some(cooldown) = parameters.cooldown {
self.cooldown = cooldown;
}
if parameters.bounty_bond.is_some() {
self.bounty_bond = parameters.bounty_bond.unwrap();
}
Expand Down

0 comments on commit 2fbe344

Please sign in to comment.