Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 4d9c816

Browse files
authored
Governance: Increase outstanding proposals per user to 10 (#2429)
increase outstanding proposals per user to 10
1 parent f93450c commit 4d9c816

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Anchor.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
anchor_version = "0.13.2"
1+
anchor_version = "0.16.1"
2+
solana_version = "1.7.11"
23

34
[workspace]
45
members = ["governance/program"]

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

governance/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "spl-governance"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
description = "Solana Program Library Governance Program"
55
authors = ["Solana Maintainers <[email protected]>"]
66
repository = "https://github.com/solana-labs/solana-program-library"

governance/program/src/state/token_owner_record.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl TokenOwnerRecord {
111111

112112
// The number of outstanding proposals is currently restricted to 1
113113
// If there is a need to change it in the future then it should be added to realm or governance config
114-
if self.outstanding_proposal_count > 0 {
114+
if self.outstanding_proposal_count >= 10 {
115115
return Err(GovernanceError::TooManyOutstandingProposals.into());
116116
}
117117

0 commit comments

Comments
 (0)