Governance: Increase outstanding proposals per user to 10 (#2429)

increase outstanding proposals per user to 10
This commit is contained in:
Maximilian Schneider 2021-09-21 20:32:57 +02:00 committed by GitHub
parent f93450c731
commit 4d9c816feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
anchor_version = "0.13.2"
anchor_version = "0.16.1"
solana_version = "1.7.11"
[workspace]
members = ["governance/program"]

2
Cargo.lock generated
View File

@ -3645,7 +3645,7 @@ dependencies = [
[[package]]
name = "spl-governance"
version = "1.1.0"
version = "1.1.1"
dependencies = [
"arrayref",
"assert_matches",

View File

@ -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"

View File

@ -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());
}