Skip to content

docs: fix undefined header in updateState #1220

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

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

santamasa
Copy link
Contributor

While reviewing the updateState function in the Loopback Client spec, I noticed that header.height is used, but header is never defined. However, just above, height = getSelfHeight() correctly retrieves the height of the local ledger.

This change replaces header.height with height, ensuring that the function uses the properly initialized variable.

@AdityaSripal AdityaSripal merged commit 9b6c7a9 into cosmos:main Apr 2, 2025
2 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.

2 participants