From 4d9c816feb855ed3b89929f710081fb4e73a34e5 Mon Sep 17 00:00:00 2001 From: Maximilian Schneider Date: Tue, 21 Sep 2021 20:32:57 +0200 Subject: [PATCH] Governance: Increase outstanding proposals per user to 10 (#2429) increase outstanding proposals per user to 10 --- Anchor.toml | 3 ++- Cargo.lock | 2 +- governance/program/Cargo.toml | 2 +- governance/program/src/state/token_owner_record.rs | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Anchor.toml b/Anchor.toml index 0cccdcb06e3..9f316c2328b 100644 --- a/Anchor.toml +++ b/Anchor.toml @@ -1,4 +1,5 @@ -anchor_version = "0.13.2" +anchor_version = "0.16.1" +solana_version = "1.7.11" [workspace] members = ["governance/program"] diff --git a/Cargo.lock b/Cargo.lock index 1b42457fd82..f548d9160c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3645,7 +3645,7 @@ dependencies = [ [[package]] name = "spl-governance" -version = "1.1.0" +version = "1.1.1" dependencies = [ "arrayref", "assert_matches", diff --git a/governance/program/Cargo.toml b/governance/program/Cargo.toml index 019fe0efb99..e02ae9c39c5 100644 --- a/governance/program/Cargo.toml +++ b/governance/program/Cargo.toml @@ -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 "] repository = "https://github.com/solana-labs/solana-program-library" diff --git a/governance/program/src/state/token_owner_record.rs b/governance/program/src/state/token_owner_record.rs index 5ef3f708b5a..5d2fd0d1d43 100644 --- a/governance/program/src/state/token_owner_record.rs +++ b/governance/program/src/state/token_owner_record.rs @@ -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()); }