Governance: Increase outstanding proposals per user to 10 (#2429)
increase outstanding proposals per user to 10
This commit is contained in:
parent
f93450c731
commit
4d9c816feb
|
@ -1,4 +1,5 @@
|
|||
anchor_version = "0.13.2"
|
||||
anchor_version = "0.16.1"
|
||||
solana_version = "1.7.11"
|
||||
|
||||
[workspace]
|
||||
members = ["governance/program"]
|
||||
|
|
|
@ -3645,7 +3645,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "spl-governance"
|
||||
version = "1.1.0"
|
||||
version = "1.1.1"
|
||||
dependencies = [
|
||||
"arrayref",
|
||||
"assert_matches",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "spl-governance"
|
||||
version = "1.1.0"
|
||||
version = "1.1.1"
|
||||
description = "Solana Program Library Governance Program"
|
||||
authors = ["Solana Maintainers <maintainers@solana.foundation>"]
|
||||
repository = "https://github.com/solana-labs/solana-program-library"
|
||||
|
|
|
@ -111,7 +111,7 @@ impl TokenOwnerRecord {
|
|||
|
||||
// The number of outstanding proposals is currently restricted to 1
|
||||
// If there is a need to change it in the future then it should be added to realm or governance config
|
||||
if self.outstanding_proposal_count > 0 {
|
||||
if self.outstanding_proposal_count >= 10 {
|
||||
return Err(GovernanceError::TooManyOutstandingProposals.into());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue