Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 489773e

Browse files
authored
Merge pull request #15 from pyth-network/hotfix-refactor/private-attributeiter
Make AttributeIter struct public
2 parents c7f4e24 + 550fc71 commit 489773e

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

examples/get_accounts.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ use pyth_client::{
77
CorpAction,
88
load_mapping,
99
load_product,
10-
load_price,
11-
PROD_HDR_SIZE
10+
load_price
1211
};
1312
use solana_client::{
1413
rpc_client::RpcClient

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ pub fn load_price(data: &[u8]) -> Result<&Price, PythError> {
394394
return Ok(pyth_price);
395395
}
396396

397-
struct AttributeIter<'a> {
397+
pub struct AttributeIter<'a> {
398398
attrs: &'a [u8],
399399
}
400400

tests/instruction_count.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
use {
22
pyth_client::{id, instruction, PriceConf},
33
pyth_client::processor::process_instruction,
4-
solana_program::{
5-
instruction::Instruction,
6-
pubkey::Pubkey,
7-
},
4+
solana_program::instruction::Instruction,
85
solana_program_test::*,
96
solana_sdk::{signature::Signer, transaction::Transaction},
107
};

0 commit comments

Comments
 (0)