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

solana-ibc: replace restaking staking program id with bridge contract program id #382

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

dhruvja
Copy link
Collaborator

@dhruvja dhruvja commented Aug 28, 2024

When inner CPI calls are being made, the called program can only know the initial program which made the CPI. It cannot know if there were inner CPI calls being made before calling the last one. So to whitelist the update_stake method, it should check if the caller is bridge-contract program ID instead of restaking program ID since its the bridge contract that would call the restaking and then the solana-ibc.

@dhruvja dhruvja requested a review from mina86 August 29, 2024 07:09
@dhruvja dhruvja merged commit e0b0c1e into master Aug 30, 2024
4 checks passed
@dhruvja dhruvja deleted the add-staker-program-id branch August 30, 2024 07:10
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.

2 participants