fix(primitives): Fix native scripts policy id (add missing tag) (#94)

This commit is contained in:
Smaug 2022-04-27 13:07:28 +02:00 committed by GitHub
parent a21d892fcc
commit a5df52cc15
2 changed files with 9 additions and 1 deletions

View file

@ -21,7 +21,7 @@ pub fn hash_plutus_data(data: &PlutusData) -> Hash<32> {
impl NativeScript {
pub fn to_hash(&self) -> Hash<28> {
Hasher::<224>::hash_cbor(self)
Hasher::<224>::hash_tagged_cbor(self, 0)
}
}