Skip to content

Commit

Permalink
effects: add accessors for EffectsV2
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Jun 12, 2024
1 parent 8b0d48c commit 4899f6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/sui-types/src/effects/effects_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct TransactionEffectsV2 {
dependencies: Vec<TransactionDigest>,

/// The version number of all the written Move objects by this transaction.
lamport_version: SequenceNumber,
pub(crate) lamport_version: SequenceNumber,
/// Objects whose state are changed in the object store.
changed_objects: Vec<(ObjectID, EffectsObjectChange)>,
/// Shared objects that are not mutated in this transaction. Unlike owned objects,
Expand Down Expand Up @@ -556,6 +556,10 @@ impl TransactionEffectsV2 {
);
}
}

pub fn changed_objects(&self) -> &[(ObjectID, EffectsObjectChange)] {
&self.changed_objects
}
}

impl Default for TransactionEffectsV2 {
Expand Down

0 comments on commit 4899f6d

Please sign in to comment.