Skip to content

Commit

Permalink
Bump version on start boost (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass authored Feb 18, 2024
1 parent 8d86b00 commit eae712b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion programs/hexboosting/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hexboosting"
version = "0.0.4"
version = "0.0.5"
description = "Created with Anchor"
edition = "2021"

Expand Down
1 change: 1 addition & 0 deletions programs/hexboosting/src/instructions/start_boost_v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub fn handler(ctx: Context<StartBoostV0>, 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(())
Expand Down

0 comments on commit eae712b

Please sign in to comment.