-
Notifications
You must be signed in to change notification settings - Fork 162
Use sol_get_sysvar instead of sol_get_<NAME>_sysvar, fixed #458
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
Open
rustopian
wants to merge
26
commits into
anza-xyz:master
Choose a base branch
from
rustopian:sysvar-get-packed-reprs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
2d0d5e6
safe sol_get_sysvar from packed reprs
rustopian 08936c4
use decorators instead of macro, more compile-time checks
rustopian 70cae6a
clean up to_bytes
rustopian 732d1e8
tests: rm redundant, clean up bincode gating
rustopian 07e5fb1
rm test util duplication
rustopian a359358
rm from_raw_parts_mut ub
rustopian 6070ca0
readd intentionally redundant arm
rustopian 201ffb1
rework sysvars to byte arrays and accessors
rustopian ff3c1f9
rm outdated comment lines
rustopian 7ef14b7
custom rent, epoch sysvar pods
rustopian c438a3e
doc comments, misc
rustopian 17b02fc
safety comments
rustopian d3e51c9
rm now unneeded Rent::new()
rustopian 4b95d4d
use common and size constants
rustopian c52a6bf
rm unnecessary pod for EpochRewards, use pad fill approach
rustopian 0baf904
in-line now unnecessary helper
rustopian 46fa5b1
doc comment
rustopian a6e7297
impl_sysvar_get takes optional padding
rustopian 2ce5492
safety comments
rustopian f869967
fold in sysvar errors as previously
rustopian f5af464
valid bool values only
rustopian b36f96e
specifier, fmt
rustopian e8ab6ac
use bool directly, safety comments
rustopian 190e542
allow depr in test
rustopian 372c65b
now unneeded TryFrom -> From
rustopian 4f49270
rm now unused fetch_pod
rustopian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabling
deprecatedto be passed through (as in the original sol_get_sysvar PR)