user4129: 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?

user2537: Interesting, I haven't found one either. If you need the PubKey to compute the hash you can use ownPaymentPubKeyHash

user127: You should use ownPaymentPubKeyHash here is the source code.
It will work by just replacing ownPubKeyHash with ownPaymentPubKeyHash and return type PubKeyHash to PaymentPubKeyHash.

4129: <p>In lesson 5 that they use a built in function called <code>ownPubKey</code> to access the wallet pubKey in the transaction on the plutus playground.</p>
<p>This function seems to be non-existent in the newer versions of plutus what is a good replacement for this?</p>
 2537: <p>Interesting, I haven't found one either. If you need the PubKey to compute the hash you can use <code>ownPaymentPubKeyHash</code></p>
 127: <p>You should use <code>ownPaymentPubKeyHash</code> here is <a href="https://github.com/input-output-hk/plutus-apps/blob/5ffdb6362b9ba3e7095beccde56df0280abf12d0/plutus-contract/src/Plutus/Contract/Request.hs#L769" rel="nofollow noreferrer">the source code</a>.</p>
<p>It will work by just replacing <code>ownPubKeyHash</code> with <code>ownPaymentPubKeyHash</code> and return type <code>PubKeyHash</code> to <code>PaymentPubKeyHash</code>.</p>
