add burning support to stake policy
This commit is contained in:
parent
552c6c8a00
commit
87af9ffcb9
3 changed files with 86 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue