Skip to content

Commit

Permalink
feat: charge proposal cost
Browse files Browse the repository at this point in the history
  • Loading branch information
devwckd committed Dec 16, 2024
1 parent 9c75e5d commit 148566d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/governance/src/proposal.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::add_balance;
use crate::remove_balance;
use crate::BoundedBTreeSet;
use crate::BoundedVec;
use crate::DebugNoBound;
Expand Down Expand Up @@ -248,8 +249,7 @@ fn add_proposal<T: crate::Config>(
let config = GlobalGovernanceConfig::<T>::get();

let cost = config.proposal_cost;

// TODO: charge cost
remove_balance::<T>(&proposer, cost)?;

let proposal_id: u64 = crate::Proposals::<T>::iter()
.count()
Expand Down

0 comments on commit 148566d

Please sign in to comment.