Преглед на файлове

fix: anchor idl gen (#2108)

* Fix compatibility with Anchor's idl-build

* bump

* cargo lock

* format

---------

Co-authored-by: Olivier Eblé <olivier@eble.fr>
guibescos преди 1 година
родител
ревизия
9a36898901
променени са 3 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 1 1
      pythnet/pythnet_sdk/Cargo.toml
  2. 2 1
      pythnet/pythnet_sdk/src/messages.rs
  3. 1 1
      target_chains/solana/Cargo.lock

+ 1 - 1
pythnet/pythnet_sdk/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "pythnet-sdk"
-version = "2.3.0"
+version = "2.3.1"
 description = "Pyth Runtime for Solana"
 authors = ["Pyth Data Association"]
 repository = "https://github.com/pyth-network/pythnet"

+ 2 - 1
pythnet/pythnet_sdk/src/messages.rs

@@ -91,7 +91,8 @@ pub type Pubkey = [u8; 32];
 )]
 
 pub struct PriceFeedMessage {
-    pub feed_id: FeedId,
+    /// `FeedId` but avoid the type alias because of compatibility issues with Anchor's `idl-build` feature.
+    pub feed_id: [u8; 32],
     pub price: i64,
     pub conf: u64,
     pub exponent: i32,

+ 1 - 1
target_chains/solana/Cargo.lock

@@ -3117,7 +3117,7 @@ dependencies = [
 
 [[package]]
 name = "pythnet-sdk"
-version = "2.3.0"
+version = "2.3.1"
 dependencies = [
  "anchor-lang",
  "bincode",