-
Notifications
You must be signed in to change notification settings - Fork 13
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
refactor: Remove move object has_public_transfer
#3831
Conversation
e27d0e0
to
d71c9b8
Compare
55e637b
to
b0e4706
Compare
There was a problem hiding this 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?
iota-execution/latest/iota-adapter/src/programmable_transactions/context.rs
Show resolved
Hide resolved
iota-execution/v0/iota-adapter/src/programmable_transactions/context.rs
Outdated
Show resolved
Hide resolved
1a3ac47
to
0283c5d
Compare
acebb7e
to
6c6e8dd
Compare
This pull request has been deployed to Vercel. Latest commit: 5db8d92 ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-culkmcp9t.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 5db8d92 ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-41h75peue.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 5db8d92 ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-hajqwgt9r.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 767b8c6 ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-ax8snlhc9.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 767b8c6 ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-4ezwzmm6m.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 767b8c6 ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-mus4tdn52.vercel.app |
There was a problem hiding this 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!
767b8c6
to
f304d7a
Compare
This pull request has been deployed to Vercel. Latest commit: f304d7a ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-paeij2wzv.vercel.app |
This pull request has been deployed to Vercel. Latest commit: f304d7a ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-8sckoimps.vercel.app |
This pull request has been deployed to Vercel. Latest commit: f304d7a ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-kb0hqlk93.vercel.app |
This pull request has been deployed to Vercel. Latest commit: e61cd2a ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-jrkxa9imr.vercel.app |
This pull request has been deployed to Vercel. Latest commit: e61cd2a ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-pwbnb5x80.vercel.app |
This pull request has been deployed to Vercel. Latest commit: e61cd2a ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-eq236a4ak.vercel.app |
crates/iota-adapter-transactional-tests/tests/mvcc/receive_object_access_through_parent_df.exp
Show resolved
Hide resolved
crates/iota-adapter-transactional-tests/tests/mvcc/receive_object_access_through_parent_dof.exp
Show resolved
Hide resolved
crates/iota-adapter-transactional-tests/tests/mvcc/v0/child_of_child.move
Show resolved
Hide resolved
crates/iota-adapter-transactional-tests/tests/receive_object/receive_dof_and_mutate.exp
Show resolved
Hide resolved
… mvcc/v0 child_of_child
This pull request has been deployed to Vercel. Latest commit: 07ab05b ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-4khh7vt76.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 07ab05b ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-mvt9bpq89.vercel.app |
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? |
There was a problem hiding this comment.
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?
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#18Links to any relevant issues
#2092
Type of change
Choose a type of change, and delete any options that are not relevant.
Change checklist