Skip to content

Commit

Permalink
serializedCompiled
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekeke committed Feb 15, 2023
1 parent bf25853 commit 45d5874
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion on-chain/export/Main.hs
@@ -1,7 +1,8 @@
module Main (main) where

import AlwaysSucceeds (plc)
import AlwaysSucceeds

main :: IO ()
main = do
putStrLn plc
putStrLn $ show serializedCompiled
7 changes: 6 additions & 1 deletion on-chain/src/AlwaysSucceeds.hs
@@ -1,7 +1,9 @@
{-# LANGUAGE TemplateHaskell#-}

module AlwaysSucceeds (alwaysSucceedsCompiled, plc) where
module AlwaysSucceeds (alwaysSucceedsCompiled, plc, serializedCompiled) where


import PlutusLedgerApi.Common
import PlutusTx

alwaysSucceeds :: BuiltinData -> BuiltinData -> BuiltinData -> ()
Expand All @@ -12,3 +14,6 @@ alwaysSucceedsCompiled = $$(compile [|| alwaysSucceeds ||])

plc :: String
plc = show $ getPlc alwaysSucceedsCompiled

serializedCompiled :: SerialisedScript
serializedCompiled = serialiseCompiledCode alwaysSucceedsCompiled

0 comments on commit 45d5874

Please sign in to comment.