add burning support to stake policy

This commit is contained in:
Emily Martins 2022-02-21 19:03:05 +01:00
parent 552c6c8a00
commit 87af9ffcb9
3 changed files with 86 additions and 25 deletions

View file

@ -107,6 +107,7 @@ passetClassValueOf =
v <- pexpectJust 0 (plookup # pdata token # m)
pfromData v
-- | Extract amount from PValue belonging to a Haskell-level AssetClass
passetClassValueOf' :: AssetClass -> Term s (PValue :--> PInteger)
passetClassValueOf' (AssetClass (sym, token)) =
passetClassValueOf # pconstant sym # pconstant token