Created
March 13, 2021 14:01
-
-
Save kangks/37a69d6d33a193ff4f4a130dcef30cc6 to your computer and use it in GitHub Desktop.
Plutus Playground Smart Contract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- https://docs.cardano.org/projects/plutus/en/latest/tutorials/basic-validators.html#basic-validators-tutorial | |
-- https://edu.clio.one/lessons/writing-your-first-plutus-smart-contract/lessons/writing-your-first-plutus-code/ | |
module SimpleValidator where | |
import Data.Text | |
-- import Language.Plutus.Contract | |
import Language.PlutusTx | |
--import qualified Language.PlutusTx as PlutusTx | |
import Playground.Contract | |
--import Ledger | |
--import qualified Language.PlutusTx as PlutusTx | |
import Ledger | |
import Ledger.Typed.Scripts | |
--theValidator :: ValidatorScript | |
theValidator :: Ledger.Typed.Scripts.ScriptInstance | |
theValidator = ValidatorScript (fromCompiledCode $$(Language.PlutusTx.compile [|| \(a :: ()) (b :: ()) (c :: ()) -> () ||])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0,[]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment