0

I am trying to use a PubKeyHash as a variable in my on-Chain code, something like this:

pkh :: PubKeyHash
pkh = "dca6035712f164db2f99c71404d392115d2bdde366fbbe359ae01f1d"

But this does not work, just give me a strange error when compiling I tried to add the In-linable but that did not work either. I tried with some BuildIn constructors as well and that did not work either.

1 Answer 1

1

I managed to use PubKeyHash by using parameterized smartcontract code like I have showed in another question here

1
  • It seems so strange to me that parametrizing works but not direcly :s Commented Jan 7, 2022 at 14:27

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.