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

Updates documentation around CPI and InvokeContext::get_keyed_accounts#21633

Merged
Lichtso merged 1 commit intosolana-labs:masterfrom
Lichtso:docs/cpi_first_instruction_account
Dec 6, 2021
Merged

Updates documentation around CPI and InvokeContext::get_keyed_accounts#21633
Lichtso merged 1 commit intosolana-labs:masterfrom
Lichtso:docs/cpi_first_instruction_account

Conversation

@Lichtso
Copy link
Copy Markdown
Contributor

@Lichtso Lichtso commented Dec 6, 2021

Problem

See discussion here: https://github.com/solana-labs/solana/pull/21535/files

Summary of Changes

Updates the documentation around:

  • What needs to be passed in CPI
  • How InvokeContext::get_keyed_accounts() and InvokeContext::get_instruction_keyed_accounts() differ

Fixes #

@Lichtso Lichtso requested a review from jstarry December 6, 2021 14:23
Comment thread docs/src/developing/programming-model/calling-between-programs.md
@Lichtso Lichtso force-pushed the docs/cpi_first_instruction_account branch from 46e6217 to 82b5a81 Compare December 6, 2021 16:16
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 6, 2021

Codecov Report

Merging #21633 (82b5a81) into master (cd9dda4) will decrease coverage by 0.0%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #21633     +/-   ##
=========================================
- Coverage    81.6%    81.6%   -0.1%     
=========================================
  Files         510      510             
  Lines      142504   142504             
=========================================
- Hits       116416   116405     -11     
- Misses      26088    26099     +11     

@Lichtso Lichtso merged commit 6f3f6ed into solana-labs:master Dec 6, 2021
@Lichtso Lichtso deleted the docs/cpi_first_instruction_account branch December 6, 2021 20:20
Lichtso added a commit to Lichtso/solana that referenced this pull request Dec 20, 2021
Lichtso added a commit to Lichtso/solana that referenced this pull request Dec 20, 2021
@Lichtso Lichtso mentioned this pull request Dec 20, 2021
Lichtso added a commit that referenced this pull request Dec 21, 2021
* Partial revert "Updates documentation around what needs to be passed in CPI. (#21633)"

* Enforces the program_id being passed explicitly by removing it from get_instruction_keyed_accounts().

* instruction_accounts => instructions_account
mergify Bot pushed a commit that referenced this pull request Dec 21, 2021
* Partial revert "Updates documentation around what needs to be passed in CPI. (#21633)"

* Enforces the program_id being passed explicitly by removing it from get_instruction_keyed_accounts().

* instruction_accounts => instructions_account

(cherry picked from commit ba8e158)

# Conflicts:
#	program-runtime/src/invoke_context.rs
Lichtso added a commit that referenced this pull request Dec 21, 2021
* Partial revert "Updates documentation around what needs to be passed in CPI. (#21633)"

* Enforces the program_id being passed explicitly by removing it from get_instruction_keyed_accounts().

* instruction_accounts => instructions_account

(cherry picked from commit ba8e158)
mergify Bot added a commit that referenced this pull request Dec 21, 2021
* Partial revert "Updates documentation around what needs to be passed in CPI. (#21633)"

* Enforces the program_id being passed explicitly by removing it from get_instruction_keyed_accounts().

* instruction_accounts => instructions_account

(cherry picked from commit ba8e158)

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
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