Skip to content

Commit

Permalink
Update lib/shelley/src/Cardano/Wallet/Shelley/Network/Blockfrost.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Heinrich Apfelmus <heinrich.apfelmus@iohk.io>
  • Loading branch information
Unisay and HeinrichApfelmus committed Aug 9, 2022
1 parent cba1b13 commit f816524
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/shelley/src/Cardano/Wallet/Shelley/Network/Blockfrost.hs
Expand Up @@ -755,7 +755,9 @@ assembleTransaction
| BF.AssetAmount sd <- _utxoOutputAmount
]
tokens <- for bfAssets \(textValue, a) -> do
let (policy, name) = T.splitAt 56 textValue
-- textValue is hex-encoded,
-- the first 28 bytes are the policy script hash
let (policy, name) = T.splitAt (2*28) textValue
policyId <-
first (InvalidTokenPolicyId policy) (fromText policy)
assetName <-
Expand Down

0 comments on commit f816524

Please sign in to comment.