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 435b8aa commit 8777e97Copy full SHA for 8777e97
apps/hermes/server/src/network/pythnet.rs
@@ -279,8 +279,9 @@ async fn fetch_price_feeds_metadata(
279
filters: Some(vec![RpcFilterType::Memcmp(Memcmp::new(
280
0, // offset
281
// 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()),
+ MemcmpEncodedBytes::Bytes(
+ b"\xd4\xc3\xb2\xa1\x02\x00\x00\x00\x02\x00\x00\x00".to_vec(),
284
+ ),
285
))]),
286
account_config: RpcAccountInfoConfig {
287
encoding: Some(UiAccountEncoding::Base64Zstd),
0 commit comments