-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Expose executable and rent_epoch in AccountInfo #8619
Expose executable and rent_epoch in AccountInfo #8619
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8619 +/- ##
========================================
Coverage ? 80%
========================================
Files ? 256
Lines ? 55751
Branches ? 0
========================================
Hits ? 44610
Misses ? 11141
Partials ? 0 |
@@ -170,12 +170,14 @@ SOL_FN_PREFIX bool SolPubkey_same(const SolPubkey *one, const SolPubkey *two) { | |||
*/ | |||
typedef struct { | |||
SolPubkey *key; /** Public key of the account */ | |||
bool is_signer; /** Transaction was signed by this account's key? */ |
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.
@mvines Any opposition to this structure re-org, saves 8 bytes :-)
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.
nope! We prolly ought to get this on 1.0.x for TdS
(cherry picked from commit 25df95b)
Problem
AccountInfo
does not expose the same members asAccount
, namelyexecutable
andrent_epoch
.One place this becomes an issue is when doing cross-program-invocations where the program's accounts are passed to another program from within the program.
Summary of Changes
Expose
executable
andrent_epoch
inAccountInfo
Fixes #