diff --git a/bip/src/bp.rs b/bip/src/bp.rs index b86be8b..09d219e 100644 --- a/bip/src/bp.rs +++ b/bip/src/bp.rs @@ -156,7 +156,7 @@ impl Writer { let data_rec = self.data.get(id).ok_or(Error::NotDefined)?; let data = Node::new( - node.op.clone(), + NodeOp::Data, data_rec .iter() .zip(node.entries.iter().collect::>())