Skip to content

Commit

Permalink
Merge of #4209
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jan 7, 2025
2 parents 5aeb3de + 9f2cfb6 commit 8a20655
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Increase the allowed number of PGF targets in a single proposal from 20 to
10,000. ([\#4209](https://github.com/anoma/namada/pull/4209))
7 changes: 4 additions & 3 deletions crates/governance/src/vp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use crate::ProposalVote;
pub const ADDRESS: Address = Address::Internal(InternalAddress::Governance);

/// The maximum number of item in a pgf proposal
pub const MAX_PGF_ACTIONS: usize = 20;
pub const MAX_PGF_ACTIONS: usize = 10_000;

#[allow(missing_docs)]
#[derive(Error, Debug)]
Expand Down Expand Up @@ -505,8 +505,9 @@ where

if !is_total_fundings_valid {
return Err(Error::new_alloc(format!(
"Maximum number of funding actions \
({MAX_PGF_ACTIONS}) exceeded ({})",
"Maximum number of funding targets \
({MAX_PGF_ACTIONS}) exceeded by the provided amount \
of ({})",
fundings.len()
)));
}
Expand Down

0 comments on commit 8a20655

Please sign in to comment.