1

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?

2 Answers 2

2

You should use ownPaymentPubKeyHash here is the source code.

It will work by just replacing ownPubKeyHash with ownPaymentPubKeyHash and return type PubKeyHash to PaymentPubKeyHash.

1
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.