|
@@ -323,15 +323,16 @@ pub mod tests {
|
|
|
error::GetPriceError,
|
|
error::GetPriceError,
|
|
|
price_update::{Price, PriceUpdateV2, TwapPrice, TwapUpdate, VerificationLevel},
|
|
price_update::{Price, PriceUpdateV2, TwapPrice, TwapUpdate, VerificationLevel},
|
|
|
},
|
|
},
|
|
|
- anchor_lang::{prelude::*, solana_program::borsh0_10},
|
|
|
|
|
|
|
+ anchor_lang::prelude::*,
|
|
|
pythnet_sdk::messages::PriceFeedMessage,
|
|
pythnet_sdk::messages::PriceFeedMessage,
|
|
|
|
|
+ solana_borsh::v0_10,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
#[test]
|
|
#[test]
|
|
|
fn check_size() {
|
|
fn check_size() {
|
|
|
// borsh0_10 is deprecated, v1::get_packed_len should be used in the future
|
|
// borsh0_10 is deprecated, v1::get_packed_len should be used in the future
|
|
|
#[allow(deprecated)]
|
|
#[allow(deprecated)]
|
|
|
- let len = PriceUpdateV2::DISCRIMINATOR.len() + borsh0_10::get_packed_len::<PriceUpdateV2>();
|
|
|
|
|
|
|
+ let len = PriceUpdateV2::DISCRIMINATOR.len() + v0_10::get_packed_len::<PriceUpdateV2>();
|
|
|
assert_eq!(len, PriceUpdateV2::LEN);
|
|
assert_eq!(len, PriceUpdateV2::LEN);
|
|
|
}
|
|
}
|
|
|
|
|
|