diff --git a/crates/iota-types/src/stardust/output/alias.rs b/crates/iota-types/src/stardust/output/alias.rs index 0098f20dff7..47c31088629 100644 --- a/crates/iota-types/src/stardust/output/alias.rs +++ b/crates/iota-types/src/stardust/output/alias.rs @@ -115,8 +115,6 @@ impl Alias { ) -> anyhow::Result { // Construct the Alias object. let move_alias_object = unsafe { - // Safety: we know from the definition of `Alias` in the stardust package - // that it has public transfer (`store` ability is present). MoveObject::new_from_execution( Self::tag().into(), version, @@ -187,8 +185,6 @@ impl AliasOutput { ) -> anyhow::Result { // Construct the Alias Output object. let move_alias_output_object = unsafe { - // Safety: we know from the definition of `AliasOutput` in the stardust package - // that it does not have public transfer (`store` ability is absent). MoveObject::new_from_execution( AliasOutput::tag(coin_type.to_type_tag()).into(), version, diff --git a/crates/iota-types/src/stardust/output/basic.rs b/crates/iota-types/src/stardust/output/basic.rs index 92985942ff7..ecfb6e1da6e 100644 --- a/crates/iota-types/src/stardust/output/basic.rs +++ b/crates/iota-types/src/stardust/output/basic.rs @@ -140,8 +140,6 @@ impl BasicOutput { coin_type: &CoinType, ) -> Result { let move_object = unsafe { - // Safety: we know from the definition of `BasicOutput` in the stardust package - // that it is not publicly transferable (`store` ability is absent). MoveObject::new_from_execution( BasicOutput::tag(coin_type.to_type_tag()).into(), version, @@ -195,8 +193,6 @@ pub(crate) fn create_coin( ) -> Result { let coin = Coin::new(object_id, amount); let move_object = unsafe { - // Safety: we know from the definition of `Coin` - // that it has public transfer (`store` ability is present). MoveObject::new_from_execution( MoveObjectType::from(Coin::type_(coin_type.to_type_tag())), version, diff --git a/crates/iota-types/src/stardust/output/nft.rs b/crates/iota-types/src/stardust/output/nft.rs index 2eb923e1f11..0313c264397 100644 --- a/crates/iota-types/src/stardust/output/nft.rs +++ b/crates/iota-types/src/stardust/output/nft.rs @@ -358,8 +358,6 @@ impl Nft { ) -> anyhow::Result { // Construct the Nft object. let move_nft_object = unsafe { - // Safety: we know from the definition of `Nft` in the stardust package - // that it has public transfer (`store` ability is present). MoveObject::new_from_execution( Self::tag().into(), version, @@ -447,8 +445,6 @@ impl NftOutput { ) -> anyhow::Result { // Construct the Nft Output object. let move_nft_output_object = unsafe { - // Safety: we know from the definition of `NftOutput` in the stardust package - // that it does not have public transfer (`store` ability is absent). MoveObject::new_from_execution( NftOutput::tag(coin_type.to_type_tag()).into(), version, diff --git a/crates/iota-types/src/timelock/timelock.rs b/crates/iota-types/src/timelock/timelock.rs index 067637754ff..db5afb0f7a7 100644 --- a/crates/iota-types/src/timelock/timelock.rs +++ b/crates/iota-types/src/timelock/timelock.rs @@ -123,8 +123,6 @@ pub fn to_genesis_object( version: SequenceNumber, ) -> Result { let move_object = unsafe { - // Safety: we know from the definition of `TimeLock` in the timelock package - // that it is not publicly transferable (`store` ability is absent). MoveObject::new_from_execution( MoveObjectType::timelocked_iota_balance(), version,