In one of the utility function for serialising validator functions, we have
validator :: PubKeyHash -> Validator
saveVal :: PubKeyHash -> IO ()
I was able to compute the PubKeyHash for my test wallet, but within the
cabal repl, I'm getting different script addresses when I serialise the contract with:
:set -XOverloadedStrings import PlutusTx import PlutusTx.Builtins import Plutus.V1.Ledger.Crypto saveVal (PubKeyHash ("f8493..." :: BuiltinByteString))
I'm not sure why this is the case. How am I suppose to "give" the pubkeyhash to the function?