From 7612ad84681d7f3de7632c9761afd9df6623e9e8 Mon Sep 17 00:00:00 2001 From: guibescos <59208140+guibescos@users.noreply.github.com> Date: Tue, 29 Oct 2024 16:23:44 +0000 Subject: [PATCH] fix: cap solana version (#2066) * go * go * fix: warning --- target_chains/solana/Cargo.lock | 2 +- target_chains/solana/pyth_solana_receiver_sdk/Cargo.toml | 4 ++-- .../solana/pyth_solana_receiver_sdk/src/price_update.rs | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/target_chains/solana/Cargo.lock b/target_chains/solana/Cargo.lock index 66d215840b..321d44f7ba 100644 --- a/target_chains/solana/Cargo.lock +++ b/target_chains/solana/Cargo.lock @@ -3107,7 +3107,7 @@ dependencies = [ [[package]] name = "pyth-solana-receiver-sdk" -version = "0.3.1" +version = "0.3.2" dependencies = [ "anchor-lang", "hex", diff --git a/target_chains/solana/pyth_solana_receiver_sdk/Cargo.toml b/target_chains/solana/pyth_solana_receiver_sdk/Cargo.toml index 10ed63736c..24e1bd446c 100644 --- a/target_chains/solana/pyth_solana_receiver_sdk/Cargo.toml +++ b/target_chains/solana/pyth_solana_receiver_sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pyth-solana-receiver-sdk" -version = "0.3.1" +version = "0.3.2" description = "SDK for the Pyth Solana Receiver program" authors = ["Pyth Data Association"] repository = "https://github.com/pyth-network/pyth-crosschain" @@ -16,4 +16,4 @@ name = "pyth_solana_receiver_sdk" anchor-lang = ">=0.28.0" hex = ">=0.4.3" pythnet-sdk = { path = "../../../pythnet/pythnet_sdk", version = "2.1.0", features = ["solana-program"]} -solana-program = ">=1.16.0" +solana-program = ">=1.16.0, <2.0.0" diff --git a/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs b/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs index 8efe64cd57..405e1f253b 100644 --- a/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs +++ b/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs @@ -28,7 +28,10 @@ use { /// Using partially verified price updates is dangerous, as it lowers the threshold of guardians that need to collude to produce a malicious price update. #[derive(AnchorSerialize, AnchorDeserialize, Copy, Clone, PartialEq, BorshSchema, Debug)] pub enum VerificationLevel { - Partial { num_signatures: u8 }, + Partial { + #[allow(unused)] + num_signatures: u8, + }, Full, }