fix: correct datum kind for set_datum_hash (#350)

This commit is contained in:
Harper 2024-01-02 10:18:12 +00:00 committed by GitHub
parent afa397f4ea
commit b78cedaf43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -453,7 +453,7 @@ impl Output {
pub fn set_datum_hash(mut self, datum_hash: Hash<32>) -> Self { pub fn set_datum_hash(mut self, datum_hash: Hash<32>) -> Self {
self.datum = Some(Datum { self.datum = Some(Datum {
kind: DatumKind::Inline, kind: DatumKind::Hash,
bytes: datum_hash.to_vec().into(), bytes: datum_hash.to_vec().into(),
}); });