Skip to content

Commit

Permalink
chores: Remove outdated comments to has_public_transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrvivian committed Nov 4, 2024
1 parent c9573cf commit b0e4706
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions crates/iota-types/src/stardust/output/alias.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ impl Alias {
) -> anyhow::Result<Object> {
// 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,
Expand Down Expand Up @@ -187,8 +185,6 @@ impl AliasOutput {
) -> anyhow::Result<Object> {
// 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,
Expand Down
4 changes: 0 additions & 4 deletions crates/iota-types/src/stardust/output/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ impl BasicOutput {
coin_type: &CoinType,
) -> Result<Object> {
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,
Expand Down Expand Up @@ -195,8 +193,6 @@ pub(crate) fn create_coin(
) -> Result<Object> {
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,
Expand Down
4 changes: 0 additions & 4 deletions crates/iota-types/src/stardust/output/nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,6 @@ impl Nft {
) -> anyhow::Result<Object> {
// 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,
Expand Down Expand Up @@ -447,8 +445,6 @@ impl NftOutput {
) -> anyhow::Result<Object> {
// 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,
Expand Down
2 changes: 0 additions & 2 deletions crates/iota-types/src/timelock/timelock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ pub fn to_genesis_object(
version: SequenceNumber,
) -> Result<Object, VestedRewardError> {
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,
Expand Down

0 comments on commit b0e4706

Please sign in to comment.