Skip to content

Commit

Permalink
iface: make ContractOp fields public
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Sep 20, 2024
1 parent 268a318 commit 0a0ed66
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/interface/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ pub enum OpDirection {
serde(crate = "serde_crate", rename_all = "camelCase", tag = "type")
)]
pub struct ContractOp {
direction: OpDirection,
ty: AssignmentType,
opids: BTreeSet<OpId>,
state: AllocatedState,
to: BTreeSet<XOutputSeal>,
witness: Option<WitnessInfo>,
pub direction: OpDirection,
pub ty: AssignmentType,
pub opids: BTreeSet<OpId>,
pub state: AllocatedState,
pub to: BTreeSet<XOutputSeal>,
pub witness: Option<WitnessInfo>,
}

fn reduce_to_ty(allocations: impl IntoIterator<Item = OwnedAllocation>) -> AssignmentType {
Expand Down

0 comments on commit 0a0ed66

Please sign in to comment.