In lesson 5 that they use a built in function called ownPubKey
to access the wallet pubKey in the transaction on the plutus playground.
This function seems to be non-existent in the newer versions of plutus what is a good replacement for this?
Cardano Stack Exchange is a question and answer site for users and developers of the Cardano cryptocurrency ecosystem. It only takes a minute to sign up.
Sign up to join this communityYou should use ownPaymentPubKeyHash
here is the source code.
It will work by just replacing ownPubKeyHash
with ownPaymentPubKeyHash
and return type PubKeyHash
to PaymentPubKeyHash
.
Interesting, I haven't found one either. If you need the PubKey to compute the hash you can use ownPaymentPubKeyHash