Skip to content

Commit 8777e97

Browse files
committed
fix: remove unwrap
1 parent 435b8aa commit 8777e97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/hermes/server/src/network/pythnet.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,9 @@ async fn fetch_price_feeds_metadata(
279279
filters: Some(vec![RpcFilterType::Memcmp(Memcmp::new(
280280
0, // offset
281281
// Product account header: <magic:u32le:0xa1b2c3d4> <version:u32le:0x02> <account_type:u32le:0x02>
282-
// The string literal in hex::decode is represented as be (big endian).
283-
MemcmpEncodedBytes::Bytes(hex::decode("d4c3b2a10200000002000000").unwrap()),
282+
MemcmpEncodedBytes::Bytes(
283+
b"\xd4\xc3\xb2\xa1\x02\x00\x00\x00\x02\x00\x00\x00".to_vec(),
284+
),
284285
))]),
285286
account_config: RpcAccountInfoConfig {
286287
encoding: Some(UiAccountEncoding::Base64Zstd),

0 commit comments

Comments
 (0)