Use implicit type casting operator for serialization.
[NovacoinLibrary.git] / Novacoin / CKeyID.cs
index 12b2b97..ea8e561 100644 (file)
@@ -22,7 +22,7 @@ namespace Novacoin
     {
         public CKeyID(Hash160 pubKeyHash)
         {
-            _hashBytes = pubKeyHash.hashBytes;
+            _hashBytes = pubKeyHash;
         }
 
         internal CKeyID(byte[] hashBytes)