Skip to content

Commit b308792

Browse files
Alessandro KonradAlessandro Konrad
authored andcommitted
fixed serializer for CostModel
1 parent 6238440 commit b308792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/plutus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ impl Deserialize for ConstrPlutusData {
628628

629629
impl cbor_event::se::Serialize for CostModel {
630630
fn serialize<'se, W: Write>(&self, serializer: &'se mut Serializer<W>) -> cbor_event::Result<&'se mut Serializer<W>> {
631-
serializer.write_map(cbor_event::Len::Len(COST_MODEL_OP_COUNT as u64))?;
631+
serializer.write_array(cbor_event::Len::Len(COST_MODEL_OP_COUNT as u64))?;
632632
for cost in &self.0 {
633633
cost.serialize(serializer)?;
634634
}

0 commit comments

Comments
 (0)