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

chore: deprecate block_index and replace with block_height #474

Merged
merged 6 commits into from
Jul 22, 2021

Conversation

austinabell
Copy link
Contributor

  • Deprecates env::block_index
  • Adds env::block_height and sys::block_height

closes #460

@@ -152,8 +152,14 @@ pub fn input() -> Option<Vec<u8>> {
}

/// Current block index.
#[deprecated(since = "4.0.0", note = "Use block_height instead")]
Copy link
Contributor

Choose a reason for hiding this comment

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

perfect

@austinabell austinabell merged commit a81a645 into master Jul 22, 2021
@austinabell austinabell deleted the austin/bh_rename branch July 22, 2021 16:00
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.

Update env::block_index to env::block_height
3 participants