refactor: filter out empty tokens in address_map function

This commit is contained in:
Florian Pellissier
2024-06-19 10:00:28 +02:00
committed by tvinagre
parent 959a08026a
commit fe27fc397f

View File

@@ -566,7 +566,11 @@ pub fn address_map(
hash: tx.hash.clone(),
index: tx.index.into(),
}),
tokens: pool_added.coins.into(),
tokens: pool_added
.coins
.into_iter()
.filter(|token| *token != [0; 20])
.collect(),
contracts: vec![component_id.into()],
static_att: vec![
Attribute {