Skip to content

Commit 82d8685

Browse files
authored
fix(lazer/solana): add mut annotation on treasury account (#2625)
1 parent 5da7aef commit 82d8685

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lazer/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lazer/contracts/solana/programs/pyth-lazer-solana-contract/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-lazer-solana-contract"
3-
version = "0.4.1"
3+
version = "0.4.2"
44
edition = "2021"
55
description = "Pyth Lazer Solana contract and SDK."
66
license = "Apache-2.0"

lazer/contracts/solana/programs/pyth-lazer-solana-contract/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ pub struct VerifyMessage<'info> {
261261
)]
262262
pub storage: Account<'info, Storage>,
263263
/// CHECK: this account doesn't need additional constraints.
264+
#[account(mut)]
264265
pub treasury: AccountInfo<'info>,
265266
pub system_program: Program<'info, System>,
266267
/// CHECK: account ID is checked in Solana SDK during calls
@@ -280,6 +281,7 @@ pub struct VerifyEcdsaMessage<'info> {
280281
)]
281282
pub storage: Account<'info, Storage>,
282283
/// CHECK: this account doesn't need additional constraints.
284+
#[account(mut)]
283285
pub treasury: AccountInfo<'info>,
284286
pub system_program: Program<'info, System>,
285287
}

0 commit comments

Comments
 (0)