From 18d05926fec903193f352a9ec7142493db466714 Mon Sep 17 00:00:00 2001 From: Chewing Glass Date: Fri, 20 Oct 2023 12:34:14 -0400 Subject: [PATCH] Fix relinquish vote memory --- Cargo.lock | 2 +- programs/voter-stake-registry/Cargo.toml | 2 +- .../src/instructions/relinquish_expired_vote_v0.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c9abf80d6..27b06a9f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5725,7 +5725,7 @@ checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" [[package]] name = "voter-stake-registry" -version = "0.2.2" +version = "0.2.3" dependencies = [ "anchor-lang", "anchor-spl", diff --git a/programs/voter-stake-registry/Cargo.toml b/programs/voter-stake-registry/Cargo.toml index 76e974e22..f44deb5da 100644 --- a/programs/voter-stake-registry/Cargo.toml +++ b/programs/voter-stake-registry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "voter-stake-registry" -version = "0.2.2" +version = "0.2.3" description = "Heliums voter weight plugin for spl-governance" license = "GPL-3.0-or-later" homepage = "https://github.com/helium/helium-program-library" diff --git a/programs/voter-stake-registry/src/instructions/relinquish_expired_vote_v0.rs b/programs/voter-stake-registry/src/instructions/relinquish_expired_vote_v0.rs index 0faf051ae..a1255f201 100644 --- a/programs/voter-stake-registry/src/instructions/relinquish_expired_vote_v0.rs +++ b/programs/voter-stake-registry/src/instructions/relinquish_expired_vote_v0.rs @@ -22,7 +22,7 @@ pub struct RelinquishExpiredVoteV0<'info> { mut, constraint = !matches!(proposal.state, ProposalState::Voting { .. }) )] - pub proposal: Account<'info, ProposalV0>, + pub proposal: Box>, pub system_program: Program<'info, System>, }