From 50b5e72f083c35f8f2d3274a7ab9e4f9c0530b0a Mon Sep 17 00:00:00 2001 From: Turner Date: Mon, 19 Jun 2023 16:11:29 -0700 Subject: [PATCH] Include all assets in UTxO data --- .gitignore | 5 ++++- src/reducers/full_utxos_by_address.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index adfe8a1d..dbdd0de4 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,7 @@ # Nix build results result -TODO.txt \ No newline at end of file +TODO.txt + +# IntelliJ +.idea/ \ No newline at end of file diff --git a/src/reducers/full_utxos_by_address.rs b/src/reducers/full_utxos_by_address.rs index d58a9ab9..bc63fed6 100644 --- a/src/reducers/full_utxos_by_address.rs +++ b/src/reducers/full_utxos_by_address.rs @@ -69,7 +69,7 @@ impl Reducer { } let mut assets: Vec = Vec::new(); - for asset in utxo.non_ada_assets() { + for asset in utxo.assets() { match asset { Asset::Ada(lovelace_amt) => { assets.push(json!({