Created
January 30, 2021 00:44
-
-
Save zackrw/70d3f2ad731ee43dbe0c4ca6775dc580 to your computer and use it in GitHub Desktop.
Plutus Playground Smart Contract
This file contains 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
import qualified Data.Text as T | |
import Language.Plutus.Contract hiding (when) | |
import Language.PlutusTx.Prelude | |
import Playground.Contract | |
aussie :: String -> String | |
aussie s = tail s | |
-- | A 'Contract' that logs a message. | |
hello :: Contract BlockchainActions T.Text () | |
hello = logInfo (aussie "hello, ") | |
endpoints :: Contract BlockchainActions T.Text () | |
endpoints = hello | |
mkSchemaDefinitions ''BlockchainActions | |
$(mkKnownCurrencies []) |
This file contains 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