user5152: I'm using this script to check but this doesn't works for me
import    Prelude  hiding (Eq)

mkPolicy :: PubKeyHash -> PubKeyHash -> TokenName -> BuiltinData -> ScriptContext -> Bool
mkPolicy owner1 owner2 name _redeemer ctx = checkOwnerHashDifferent

    checkOwnerHashDifferent :: Bool
    checkOwnerHashDifferent =  Eq owner1 owner2

can someone help me to resolve this?

user5926: Eq is a type class and hence will not work as you have used it above.
Assuming that PubKeyHash has an Eq typeclass instance you just need:
    checkOwnerHashDifferent :: Bool
    checkOwnerHashDifferent =  owner1 == owner2



5152: <p>I'm using this script to check but this doesn't works for me</p>
<pre><code>import    Prelude  hiding (Eq)

mkPolicy :: PubKeyHash -&gt; PubKeyHash -&gt; TokenName -&gt; BuiltinData -&gt; ScriptContext -&gt; Bool
mkPolicy owner1 owner2 name _redeemer ctx = checkOwnerHashDifferent

    checkOwnerHashDifferent :: Bool
    checkOwnerHashDifferent =  Eq owner1 owner2
</code></pre>
<p>can someone help me to resolve this?</p>
 5926: <p><code>Eq</code> is a type class and hence will not work as you have used it above.</p>
<p>Assuming that <code>PubKeyHash</code> has an <code>Eq</code> typeclass instance you just need:</p>
<pre><code>    checkOwnerHashDifferent :: Bool
    checkOwnerHashDifferent =  owner1 == owner2

</code></pre>
