Skip to content

Commit

Permalink
Fix NFT tx movement decoding (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel authored and Samuel committed May 6, 2022
1 parent bc28401 commit bf0e9c6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bf0e9c6

Please sign in to comment.