Skip to content

Commit

Permalink
effects: add accessors for EffectsV1
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Jun 12, 2024
1 parent a875f4e commit 8b0d48c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions crates/sui-types/src/effects/effects_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,30 @@ impl TransactionEffectsV1 {
dependencies,
}
}

pub fn modified_at_versions(&self) -> &[(ObjectID, SequenceNumber)] {
&self.modified_at_versions
}

pub fn mutated(&self) -> &[(ObjectRef, Owner)] {
&self.mutated
}

pub fn created(&self) -> &[(ObjectRef, Owner)] {
&self.created
}

pub fn unwrapped(&self) -> &[(ObjectRef, Owner)] {
&self.unwrapped
}

pub fn deleted(&self) -> &[ObjectRef] {
&self.deleted
}

pub fn wrapped(&self) -> &[ObjectRef] {
&self.wrapped
}
}

impl TransactionEffectsAPI for TransactionEffectsV1 {
Expand Down

0 comments on commit 8b0d48c

Please sign in to comment.