Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove move object has_public_transfer #3831

Merged

Conversation

jkrvivian
Copy link
Contributor

@jkrvivian jkrvivian commented Oct 31, 2024

Description of change

has_public_transfer is no longer used to determine whether a transaction can transfer this object. Instead, it is always calculated from the objects type when loaded in execution. So we remove it in this PR.

It's based on the removal of has_publich_transfer in iota-rust-sdk as well, here's the PR: iotaledger/iota-rust-sdk#18

Links to any relevant issues

#2092

Type of change

Choose a type of change, and delete any options that are not relevant.

  • Enhancement

Change checklist

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have checked that new and existing unit tests pass locally with my changes

@jkrvivian jkrvivian added the node Issues related to the Core Node team label Oct 31, 2024
@jkrvivian jkrvivian self-assigned this Oct 31, 2024
@jkrvivian jkrvivian force-pushed the core-node/fix/remove-MoveObject-has_public_transfer branch 2 times, most recently from e27d0e0 to d71c9b8 Compare November 1, 2024 07:25
@thibault-martinez thibault-martinez mentioned this pull request Nov 1, 2024
18 tasks
@jkrvivian jkrvivian marked this pull request as ready for review November 4, 2024 07:38
@jkrvivian jkrvivian force-pushed the core-node/fix/remove-MoveObject-has_public_transfer branch from 55e637b to b0e4706 Compare November 4, 2024 08:53
Copy link
Member

@alexsporn alexsporn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@valeriyr can you please take a close look at this since this flag is explicitly marked with safety comments.

Is this really not required by the public API users?

@alexsporn alexsporn added this to the Testnet Launch v1.0.0-rc milestone Nov 5, 2024
@jkrvivian jkrvivian force-pushed the core-node/fix/remove-MoveObject-has_public_transfer branch from acebb7e to 6c6e8dd Compare November 5, 2024 10:22
@jkrvivian jkrvivian requested review from a team as code owners November 5, 2024 11:07
Copy link
Contributor

github-actions bot commented Nov 5, 2024

This pull request has been deployed to Vercel.

Latest commit: 5db8d92

✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-culkmcp9t.vercel.app

Copy link
Contributor

github-actions bot commented Nov 5, 2024

This pull request has been deployed to Vercel.

Latest commit: 5db8d92

✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-41h75peue.vercel.app

Copy link
Contributor

github-actions bot commented Nov 5, 2024

This pull request has been deployed to Vercel.

Latest commit: 5db8d92

✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-hajqwgt9r.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: 767b8c6

✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-ax8snlhc9.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: 767b8c6

✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-4ezwzmm6m.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: 767b8c6

✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-mus4tdn52.vercel.app

Copy link
Contributor

@valeriyr valeriyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@jkrvivian jkrvivian force-pushed the core-node/fix/remove-MoveObject-has_public_transfer branch from 767b8c6 to f304d7a Compare November 8, 2024 09:13
Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: f304d7a

✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-paeij2wzv.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: f304d7a

✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-8sckoimps.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: f304d7a

✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-kb0hqlk93.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: e61cd2a

✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-jrkxa9imr.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: e61cd2a

✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-pwbnb5x80.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: e61cd2a

✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-eq236a4ak.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: 07ab05b

✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-4khh7vt76.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: 07ab05b

✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-mvt9bpq89.vercel.app

Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request has been deployed to Vercel.

Latest commit: 07ab05b

✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-o7a8vf6vu.vercel.app

@@ -149,9 +151,13 @@ mod tests {
Ok(())
}

// TODO: why is this function here with hardcoded indexes?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth opening an issue to revisit?

@alexsporn alexsporn merged commit 1a2e8e4 into develop Nov 8, 2024
38 of 40 checks passed
@alexsporn alexsporn deleted the core-node/fix/remove-MoveObject-has_public_transfer branch November 8, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation node Issues related to the Core Node team
Projects
None yet
Development

Successfully merging this pull request may close these issues.