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

test: fix mocksubtensor query previous blocks #2139

Merged

Conversation

timabilov
Copy link
Contributor

Bug

There is typo when MockSubtensor.query_subtensor function checks previous blocks
self.state.get(block, None) -> state.get(block, None)

Description of the Change

Discovered internally

Changed to proper variable name
Added tests

Alternate Designs

N/A

Possible Drawbacks

N/A

Verification Process

Verification Process
This functionality had no tests. All tests are passing

Release Notes

  • Fixed an issue where querying mock subtensor's older blocks led to an error

@timabilov
Copy link
Contributor Author

@RomanCh-OT hey, now requested merge to staging

@gus-opentensor gus-opentensor merged commit b7007af into opentensor:staging Jul 17, 2024
31 checks passed
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.

3 participants