Skip to content

Commit 9d6a834

Browse files
committed
fix: parse address list correctly in transactions request
1 parent b589fa4 commit 9d6a834

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/api/toncenter_v3/models.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,10 @@ impl TransactionsRequest {
9696
#[derive(Deserialize)]
9797
#[serde(transparent)]
9898
#[repr(transparent)]
99-
struct Item(#[serde(with = "serde_helpers::tonlib_address")] StdAddr);
99+
struct Items(#[serde(with = "tonlib_address_list")] Vec<StdAddr>);
100100

101-
Ok(Vec::<_>::deserialize(deserializer)?
102-
.into_iter()
103-
.map(|Item(addr)| addr)
104-
.collect())
101+
let Items(items) = <_>::deserialize(deserializer)?;
102+
Ok(FastHashSet::from_iter(items))
105103
}
106104
}
107105

0 commit comments

Comments
 (0)