Browse Source

fix: cap solana version (#2066)

* go

* go

* fix: warning
guibescos 1 year ago
parent
commit
7612ad8468

+ 1 - 1
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",

+ 2 - 2
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"

+ 4 - 1
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,
 }