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

Set deployment slot for non-upgradeable programs #31792

Merged
merged 2 commits into from
May 24, 2023

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented May 24, 2023

Problem

The deployment slot for the non-upgradeable programs is set to 0. It's causing issues if a tombstone gets added for these programs at a latter slot during deployment.

Summary of Changes

Set the deployment slot to current slot for such programs.

Fixes solana-labs/solana-web3.js#1308

@pgarg66 pgarg66 requested a review from Lichtso May 24, 2023 13:16
@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Merging #31792 (6e9f838) into master (e396a10) will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #31792   +/-   ##
=======================================
  Coverage    81.8%    81.9%           
=======================================
  Files         737      737           
  Lines      205994   205995    +1     
=======================================
+ Hits       168699   168722   +23     
+ Misses      37295    37273   -22     

@pgarg66 pgarg66 added the automerge Merge this Pull Request automatically once CI passes label May 24, 2023
@mergify mergify bot merged commit 595eb31 into solana-labs:master May 24, 2023
@pgarg66 pgarg66 deleted the slot-invoke-context branch May 24, 2023 16:15
jeffwashington pushed a commit to HaoranYi/solana that referenced this pull request May 24, 2023
* Set deployment slot for non-upgradeable programs

* fix sbf programs test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
2 participants