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?
You 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