fixed typo

This commit is contained in:
Lars Brünjes 2021-07-26 13:26:42 +02:00
parent d4270489d0
commit 215e032e0e
No known key found for this signature in database
GPG key ID: B488B9045DC1A087

View file

@ -65,7 +65,7 @@ mint mp = do
else do else do
let val = Value.singleton (curSymbol pkh deadline) (mpTokenName mp) (mpAmount mp) let val = Value.singleton (curSymbol pkh deadline) (mpTokenName mp) (mpAmount mp)
lookups = Constraints.mintingPolicy $ policy pkh deadline lookups = Constraints.mintingPolicy $ policy pkh deadline
tx = Constraints.mustMintValue val <> Constraints.mustValidatlIn (to $ now + 5000) tx = Constraints.mustMintValue val <> Constraints.mustValidateIn (to $ now + 5000)
ledgerTx <- submitTxConstraintsWith @Void lookups tx ledgerTx <- submitTxConstraintsWith @Void lookups tx
void $ awaitTxConfirmed $ txId ledgerTx void $ awaitTxConfirmed $ txId ledgerTx
Contract.logInfo @String $ printf "forged %s" (show val) Contract.logInfo @String $ printf "forged %s" (show val)