refactor: filter out empty tokens in address_map function
This commit is contained in:
committed by
tvinagre
parent
959a08026a
commit
fe27fc397f
@@ -566,7 +566,11 @@ pub fn address_map(
|
|||||||
hash: tx.hash.clone(),
|
hash: tx.hash.clone(),
|
||||||
index: tx.index.into(),
|
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()],
|
contracts: vec![component_id.into()],
|
||||||
static_att: vec![
|
static_att: vec![
|
||||||
Attribute {
|
Attribute {
|
||||||
|
|||||||
Reference in New Issue
Block a user