Skip to content

cleanup: remove deprecated allowances from Clock & Rent sysvars#355

Open
anand9125 wants to merge 2 commits intoanza-xyz:mainfrom
anand9125:cleanup-sysvar-deprecations
Open

cleanup: remove deprecated allowances from Clock & Rent sysvars#355
anand9125 wants to merge 2 commits intoanza-xyz:mainfrom
anand9125:cleanup-sysvar-deprecations

Conversation

@anand9125
Copy link

Summary

Removes legacy #![allow(deprecated)] attributes and outdated comments from Clock and Rent sysvar implementations.

Changes

  • sdk/src/sysvars/clock.rs

    • Removed #![allow(deprecated)]
    • Removed outdated comment referencing sol_get_clock_sysvar
  • sdk/src/sysvars/rent.rs

    • Removed #![allow(deprecated)]
    • Removed legacy comment

Both sysvars already use the generic sysvar fetch via:
impl_sysvar_get!(CLOCK_ID, 0)
impl_sysvar_get!(RENT_ID, 0)

Impact

No behavioral change. This is strictly a cleanup to remove obsolete allowances and comments.

Testing

  • Project compiles successfully after cleanup
  • No runtime logic modified

Copy link
Collaborator

@febo febo left a comment

Choose a reason for hiding this comment

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

Almost there, just one comment.

.gitignore Outdated
@@ -1,2 +1,5 @@
/node_modules
/target

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's revert this change please.

Copy link
Author

Choose a reason for hiding this comment

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

Reverted the .gitignore change. Please take another look.

Copy link
Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants