Skip to content

Commit

Permalink
fix: anchor idl gen (#2108)
Browse files Browse the repository at this point in the history
* Fix compatibility with Anchor's idl-build

* bump

* cargo lock

* format

---------

Co-authored-by: Olivier Eblé <olivier@eble.fr>
  • Loading branch information
guibescos and oeble authored Nov 11, 2024
1 parent f1c8493 commit 9a36898
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pythnet/pythnet_sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 2 additions & 1 deletion pythnet/pythnet_sdk/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion target_chains/solana/Cargo.lock

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

0 comments on commit 9a36898

Please sign in to comment.