Skip to content

Instantly share code, notes, and snippets.

@tina1998612
Created July 18, 2021 11:34
Show Gist options
  • Save tina1998612/53729d7d2f9075a58da893917f791d98 to your computer and use it in GitHub Desktop.
Save tina1998612/53729d7d2f9075a58da893917f791d98 to your computer and use it in GitHub Desktop.
import qualified Data.Text as T
import Language.Plutus.Contract hiding (when)
import Language.PlutusTx.Prelude
import Playground.Contract
-- | A 'Contract' that logs a message.
hello :: Contract BlockchainActions T.Text ()
hello = logInfo @String "Hello, world"
endpoints :: Contract BlockchainActions T.Text ()
endpoints = hello
mkSchemaDefinitions ''BlockchainActions
$(mkKnownCurrencies [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment