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

[x/programs] Improve external program function call DX #659

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

samliok
Copy link
Contributor

@samliok samliok commented Dec 22, 2023

I think this is a slight improvement to the current way we are calling external programs. We never use the calling programID anyways.

I do see us needing to distinguish between a caller vs target for reentrancy purposes later on, but imo the calling vs target programID should be managed by the engine/runtime. Thus passing the program ID of the caller should be handled outside of rust. If needed, wouldn't be a hard change to revert.

@samliok samliok self-assigned this Dec 22, 2023
@samliok samliok changed the title [x/programs] Improve external program function call UX [x/programs] Improve external program function call DX Dec 22, 2023
richardpringle
richardpringle previously approved these changes Jan 8, 2024
Copy link
Contributor

@richardpringle richardpringle left a comment

Choose a reason for hiding this comment

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

🥇

@samliok samliok merged commit 797d38a into main Jan 8, 2024
22 checks passed
@samliok samliok deleted the x/external_call branch January 8, 2024 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants