From aadf97e47bdd5fcf5ea6bbf88829a273866ca467 Mon Sep 17 00:00:00 2001 From: Samuel Date: Tue, 19 Apr 2022 11:26:34 +0200 Subject: [PATCH] Fix NFT tx movement decoding --- .../ledger_operations/transaction_movement.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/archethic/transaction_chain/transaction/validation_stamp/ledger_operations/transaction_movement.ex b/lib/archethic/transaction_chain/transaction/validation_stamp/ledger_operations/transaction_movement.ex index b5acbc6b4..806731d3c 100644 --- a/lib/archethic/transaction_chain/transaction/validation_stamp/ledger_operations/transaction_movement.ex +++ b/lib/archethic/transaction_chain/transaction/validation_stamp/ledger_operations/transaction_movement.ex @@ -129,11 +129,11 @@ defmodule ArchEthic.TransactionChain.Transaction.ValidationStamp.LedgerOperation } case Map.get(movement, :type) do - type when type in [:UCO, "UCO"] -> + :UCO -> %{res | type: :UCO} - type when type in [:NFT, "NFT"] -> - %{res | type: {:NFT, Map.get(movement, :nft_address)}} + {:NFT, nft_address} -> + %{res | type: {:NFT, nft_address}} end end