Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Add test to enforce that program id account info for CPI is optional#22069

Merged
Lichtso merged 3 commits intosolana-labs:masterfrom
jstarry:optional-program-info
Dec 23, 2021
Merged

Add test to enforce that program id account info for CPI is optional#22069
Lichtso merged 3 commits intosolana-labs:masterfrom
jstarry:optional-program-info

Conversation

@jstarry
Copy link
Copy Markdown
Contributor

@jstarry jstarry commented Dec 22, 2021

Problem

Seems that there isn't an explicit test that demonstrates that the program id account info is not required for CPI's.

Summary of Changes

  • Ensure that program id account info isn't required.
  • Revert doc changes from Fix #21986 #22035

Fixes #

@jstarry jstarry requested a review from Lichtso December 22, 2021 19:03
@jstarry jstarry added the v1.9 label Dec 22, 2021
@jstarry jstarry force-pushed the optional-program-info branch 3 times, most recently from 67928dc to fb9c5e3 Compare December 23, 2021 16:04
Lichtso
Lichtso previously approved these changes Dec 23, 2021
Copy link
Copy Markdown
Contributor

@Lichtso Lichtso left a comment

Choose a reason for hiding this comment

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

@jstarry jstarry force-pushed the optional-program-info branch from fb9c5e3 to 3764375 Compare December 23, 2021 17:47
@jstarry jstarry added the automerge Merge this Pull Request automatically once CI passes label Dec 23, 2021
@mergify mergify Bot dismissed Lichtso’s stale review December 23, 2021 17:48

Pull request has been modified.

@mergify mergify Bot removed the automerge Merge this Pull Request automatically once CI passes label Dec 23, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Dec 23, 2021

automerge label removed due to a CI failure

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 23, 2021

Codecov Report

Merging #22069 (ba3acb9) into master (ddde356) will decrease coverage by 0.0%.
The diff coverage is 78.6%.

@@            Coverage Diff            @@
##           master   #22069     +/-   ##
=========================================
- Coverage    81.3%    81.3%   -0.1%     
=========================================
  Files         518      518             
  Lines      145734   145764     +30     
=========================================
- Hits       118554   118530     -24     
- Misses      27180    27234     +54     

@Lichtso Lichtso merged commit ec7536f into solana-labs:master Dec 23, 2021
mergify Bot pushed a commit that referenced this pull request Dec 23, 2021
…22069)

* Update tests to demonstrate that program id account info for CPI is optional

* Clean up comments that say that program id account info is required

(cherry picked from commit ec7536f)
mergify Bot added a commit that referenced this pull request Jan 4, 2022
…22069) (#22103)

* Update tests to demonstrate that program id account info for CPI is optional

* Clean up comments that say that program id account info is required

(cherry picked from commit ec7536f)

Co-authored-by: Justin Starry <justin@solana.com>
@jstarry jstarry deleted the optional-program-info branch January 5, 2022 00:30
@brooksprumo brooksprumo mentioned this pull request Jan 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants