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

Add docs to solana_program::program #25352

Merged
merged 6 commits into from
May 31, 2022
Merged

Conversation

brson
Copy link
Contributor

@brson brson commented May 18, 2022

I believe that invoke_unchecked and invoke_signed_unchecked can result in undefined behavior as described in their docs. As with functions in solana_program::program_memory, to avoid a breaking API change, at least for now, I have documented them with "This function is incorrectly missing an unsafe declaration.".

@mergify mergify bot added the community Community contribution label May 18, 2022
@mergify mergify bot requested a review from a team May 18, 2022 22:40
Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

Just a couple nits from me. @jackcmay , can you please take a pass as well?

sdk/program/src/program.rs Outdated Show resolved Hide resolved
sdk/program/src/program.rs Outdated Show resolved Hide resolved
sdk/program/src/program.rs Outdated Show resolved Hide resolved
sdk/program/src/program.rs Outdated Show resolved Hide resolved
sdk/program/src/program.rs Outdated Show resolved Hide resolved
brson and others added 5 commits May 29, 2022 15:05
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
@brson
Copy link
Contributor Author

brson commented May 29, 2022

All suggestions applied. Thanks for the review.

@jackcmay jackcmay merged commit 897e97a into solana-labs:master May 31, 2022
mergify bot pushed a commit that referenced this pull request May 31, 2022
(cherry picked from commit 897e97a)

# Conflicts:
#	sdk/program/src/program.rs
CriesofCarrots added a commit that referenced this pull request May 31, 2022
* Add docs to solana_program::program (#25352)

(cherry picked from commit 897e97a)

# Conflicts:
#	sdk/program/src/program.rs

* Fix conflicts

Co-authored-by: Brian Anderson <andersrb@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Jun 29, 2022
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants