Skip to content

Conversation

notdanilo
Copy link
Contributor

⚠️ NOTE: Use notes like this to emphasize something important about the PR.

This could include other PRs this PR is built on top of; API breaking changes; reasons for why the PR is on hold; or anything else you would like to draw attention to.

Status Type ⚠️ Core Change Issue
Hold Feature No None

Problem

This PR attempts to change components ownership to the World program, so we don't need to CPI to the world program to change ownernship to the system being executed in the apply instruction.

Solution

  • Initialize & change the ownership of the component
  • Directly change ownership of the component in the apply instruction

IMPORTANT NOTE

This implementation is not working for an unknown cause. The components program account data is being zeroed out as shown in the test.

Run bolt test to check it.

@notdanilo notdanilo force-pushed the feature/system-updates-components branch from 50355ed to 598678a Compare August 29, 2025 10:01
@notdanilo notdanilo force-pushed the feature/system-updates-components branch 2 times, most recently from d806260 to b0d65fa Compare September 9, 2025 15:20
@notdanilo
Copy link
Contributor Author

This implementation will not work. It seems that the account ownership change only occur by the end of an invocation (CPI included). Which means that the assignment of the new owner in the world program is not visible to the CPI.

This PR should be closed.

cc @GabrielePicco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant