fix: encode component_id as UTF8

This commit is contained in:
Florian Pellissier
2024-03-13 10:19:59 +01:00
parent 2a1b83f6c5
commit 7601072e87

View File

@@ -252,7 +252,7 @@ pub fn map_changes(
tycho::BalanceChange { tycho::BalanceChange {
token: hex::decode(token_id).expect("Token ID not valid hex"), token: hex::decode(token_id).expect("Token ID not valid hex"),
balance: big_endian_bytes_balance, balance: big_endian_bytes_balance,
component_id: hex::decode(pool_id).expect("Token ID not valid hex"), component_id: pool_id.as_bytes().to_vec(),
}, },
) )
}) })