From b098b77e1088766c99b773f6cd407d7d625e2bd6 Mon Sep 17 00:00:00 2001 From: Chloe Martin Date: Wed, 30 Oct 2024 08:27:41 -0400 Subject: [PATCH 1/2] fix: Add events to genesis transaction --- crates/iota-rust-sdk/src/types/transaction/mod.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/iota-rust-sdk/src/types/transaction/mod.rs b/crates/iota-rust-sdk/src/types/transaction/mod.rs index c530eb1..533df58 100644 --- a/crates/iota-rust-sdk/src/types/transaction/mod.rs +++ b/crates/iota-rust-sdk/src/types/transaction/mod.rs @@ -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")] @@ -359,6 +359,8 @@ pub struct SystemPackage { pub struct GenesisTransaction { #[cfg_attr(test, any(proptest::collection::size_range(0..=2).lift()))] pub objects: Vec, + #[cfg_attr(test, any(proptest::collection::size_range(0..=2).lift()))] + pub events: Vec, } /// A series of commands where the results of one command can be used in future From 3e5ad6fa837b0945b06bf00a9a862b2fe98d1f32 Mon Sep 17 00:00:00 2001 From: Chloe Martin Date: Wed, 30 Oct 2024 11:11:25 -0400 Subject: [PATCH 2/2] increase limit --- crates/iota-rust-sdk/src/types/transaction/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/iota-rust-sdk/src/types/transaction/mod.rs b/crates/iota-rust-sdk/src/types/transaction/mod.rs index 533df58..5b60a25 100644 --- a/crates/iota-rust-sdk/src/types/transaction/mod.rs +++ b/crates/iota-rust-sdk/src/types/transaction/mod.rs @@ -359,7 +359,7 @@ pub struct SystemPackage { pub struct GenesisTransaction { #[cfg_attr(test, any(proptest::collection::size_range(0..=2).lift()))] pub objects: Vec, - #[cfg_attr(test, any(proptest::collection::size_range(0..=2).lift()))] + #[cfg_attr(test, any(proptest::collection::size_range(0..=10).lift()))] pub events: Vec, }