Skip to content

Instantly share code, notes, and snippets.

@iaverypadberg
Created April 20, 2021 20:41
Show Gist options
  • Save iaverypadberg/d766dc3828906c8ab4680c101d3c69ee to your computer and use it in GitHub Desktop.
Save iaverypadberg/d766dc3828906c8ab4680c101d3c69ee to your computer and use it in GitHub Desktop.
Plutus Playground Smart Contract
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