Skip to content

Commit

Permalink
Merge pull request #16 from iotaledger/fix/genesis-events
Browse files Browse the repository at this point in the history
fix: Add events to genesis transaction
  • Loading branch information
DaughterOfMars authored Oct 30, 2024
2 parents ed6173d + 3e5ad6f commit e8b8312
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/iota-rust-sdk/src/types/transaction/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::{
Address, CheckpointTimestamp, ConsensusCommitDigest, EpochId, GenesisObject, Identifier, Jwk,
JwkId, ObjectId, ObjectReference, ProtocolVersion, TransactionDigest, TypeTag, UserSignature,
Version,
Address, CheckpointTimestamp, ConsensusCommitDigest, EpochId, Event, GenesisObject, Identifier,
Jwk, JwkId, ObjectId, ObjectReference, ProtocolVersion, TransactionDigest, TypeTag,
UserSignature, Version,
};

#[cfg(feature = "serde")]
Expand Down Expand Up @@ -359,6 +359,8 @@ pub struct SystemPackage {
pub struct GenesisTransaction {
#[cfg_attr(test, any(proptest::collection::size_range(0..=2).lift()))]
pub objects: Vec<GenesisObject>,
#[cfg_attr(test, any(proptest::collection::size_range(0..=10).lift()))]
pub events: Vec<Event>,
}

/// A series of commands where the results of one command can be used in future
Expand Down

0 comments on commit e8b8312

Please sign in to comment.