Skip to content

Commit 4f7d3c5

Browse files
authored
Fix missed FeedId anchor serialization patch (#2603)
1 parent c2f38ba commit 4f7d3c5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

target_chains/solana/Cargo.lock

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

target_chains/solana/pyth_solana_receiver_sdk/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-solana-receiver-sdk"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
description = "SDK for the Pyth Solana Receiver program"
55
authors = ["Pyth Data Association"]
66
repository = "https://github.com/pyth-network/pyth-crosschain"

target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ impl TwapUpdate {
160160
/// This type is used to persist the calculated TWAP in TwapUpdate accounts on Solana.
161161
#[derive(AnchorSerialize, AnchorDeserialize, Copy, Clone, PartialEq, BorshSchema, Debug)]
162162
pub struct TwapPrice {
163-
pub feed_id: FeedId,
163+
/// `FeedId` but avoid the type alias because of compatibility issues with Anchor's `idl-build` feature.
164+
pub feed_id: [u8; 32],
164165
pub start_time: i64,
165166
pub end_time: i64,
166167
pub price: i64,

0 commit comments

Comments
 (0)