user2068: 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.

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

2068: <p>I am trying to use a PubKeyHash as a variable in my on-Chain code, something like this:</p>
<pre><code>pkh :: PubKeyHash
pkh = &quot;dca6035712f164db2f99c71404d392115d2bdde366fbbe359ae01f1d&quot;
</code></pre>
<p>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.</p>
 4596: <p>I managed to use PubKeyHash by using parameterized smartcontract code like I have showed in another question <a href="https://cardano.stackexchange.com/a/6157/4596">here</a></p>
