We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ddf2b commit 85a806eCopy full SHA for 85a806e
pyth-sdk-solana/Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "pyth-sdk-solana"
3
-version = "0.10.1"
+version = "0.10.2"
4
authors = ["Pyth Data Foundation"]
5
edition = "2018"
6
license = "Apache-2.0"
pyth-sdk-solana/src/state.rs
@@ -191,7 +191,9 @@ pub struct ProductAccount {
191
192
impl ProductAccount {
193
pub fn iter(&self) -> AttributeIter {
194
- AttributeIter { attrs: &self.attr }
+ AttributeIter {
195
+ attrs: &self.attr[..(self.size as usize - PROD_HDR_SIZE)],
196
+ }
197
}
198
199
0 commit comments