Skip to content

Commit

Permalink
fix(cardano): add currency to To list
Browse files Browse the repository at this point in the history
  • Loading branch information
soralit committed Oct 26, 2023
1 parent ffc168d commit 2378b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/apps/cardano/src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ impl ParsedCardanoTx {

let to = CardanoTo {
address: address.clone(),
amount: normalize_value(output.value),
amount: normalize_coin(output.value),
value: output.value,
assets: assets_map.clone(),
assets_text: match assets_map.len() {
Expand Down Expand Up @@ -527,7 +527,7 @@ impl ParsedCardanoTx {
let multi_asset = ParsedCardanoMultiAsset {
policy_id: policy_id.clone().to_bytes(),
name: name.to_bytes(),
amount: normalize_coin(from_bignum(&asset_value)),
amount: normalize_value(from_bignum(&asset_value)),
value: from_bignum(&asset_value),
id: format!(
"{}#{}",
Expand Down

0 comments on commit 2378b1e

Please sign in to comment.