Skip to content

Commit 7ef1ac8

Browse files
committed
Fix typo
1 parent 4c54f50 commit 7ef1ac8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/agent/pythd/adapter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl Adapter {
320320
result.push(ProductAccountMetadata {
321321
account: product_account_key.to_string(),
322322
attr_dict: product_account.attr_dict,
323-
prices: price_accounts_metadata,
323+
price: price_accounts_metadata,
324324
})
325325
}
326326

@@ -867,7 +867,7 @@ mod tests {
867867
]
868868
.map(|(k, v)| (k.to_string(), v.to_string())),
869869
),
870-
prices: vec![
870+
price: vec![
871871
PriceAccountMetadata {
872872
account: "GG3FTE7xhc9Diy7dn9P6BWzoCrAEE4D3p5NBYrDAm5DD".to_string(),
873873
price_type: "price".to_string(),
@@ -898,7 +898,7 @@ mod tests {
898898
]
899899
.map(|(k, v)| (k.to_string(), v.to_string())),
900900
),
901-
prices: vec![
901+
price: vec![
902902
PriceAccountMetadata {
903903
account: "GVXRSBjFk6e6J3NbVPXohDJetcTjaeeuykUpbQF8UoMU".to_string(),
904904
price_type: "price".to_string(),

src/agent/pythd/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub type Slot = u64;
2424
pub struct ProductAccountMetadata {
2525
pub account: Pubkey,
2626
pub attr_dict: Attrs,
27-
pub prices: Vec<PriceAccountMetadata>,
27+
pub price: Vec<PriceAccountMetadata>,
2828
}
2929

3030
#[derive(Serialize, Deserialize, Debug, Clone, Ord, PartialOrd, PartialEq, Eq)]
@@ -983,7 +983,7 @@ pub mod rpc {
983983
]
984984
.map(|(k, v)| (k.to_string(), v.to_string())),
985985
),
986-
prices: vec![
986+
price: vec![
987987
PriceAccountMetadata {
988988
account: Pubkey::from("some_price_account"),
989989
price_type: "price".to_string(),

0 commit comments

Comments
 (0)