diff --git a/Cargo.lock b/Cargo.lock index 48ec13d34..2c200dc23 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2000,7 +2000,7 @@ dependencies = [ [[package]] name = "hexboosting" -version = "0.0.3" +version = "0.0.5" dependencies = [ "anchor-lang", "anchor-spl", @@ -5754,7 +5754,7 @@ checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" [[package]] name = "voter-stake-registry" -version = "0.3.0" +version = "0.3.1" dependencies = [ "anchor-lang", "anchor-spl", diff --git a/programs/hexboosting/Cargo.toml b/programs/hexboosting/Cargo.toml index 373ec4124..4ba727415 100644 --- a/programs/hexboosting/Cargo.toml +++ b/programs/hexboosting/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hexboosting" -version = "0.0.4" +version = "0.0.5" description = "Created with Anchor" edition = "2021" diff --git a/programs/hexboosting/src/instructions/start_boost_v0.rs b/programs/hexboosting/src/instructions/start_boost_v0.rs index 89f5bc504..81e6e6689 100644 --- a/programs/hexboosting/src/instructions/start_boost_v0.rs +++ b/programs/hexboosting/src/instructions/start_boost_v0.rs @@ -25,6 +25,7 @@ pub fn handler(ctx: Context, args: StartBoostArgsV0) -> Result<()> require_eq!(ctx.accounts.boosted_hex.start_ts, 0); require_gt!(args.start_ts, 0); + ctx.accounts.boosted_hex.version += 1; ctx.accounts.boosted_hex.start_ts = args.start_ts; Ok(())