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

fix: added WithViper() method in initClientCtx to get the TmNode client #332

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

arnabghose997
Copy link
Contributor

There were some changes made in Cosmos SDK v0.45.10 which led to variable shadowing of Tendermint Node instance. This resulted in the following error for any API call made:

{
  "code": 2,
  "message": "no RPC client is defined in offline mode",
  "details": []
}

The variable showing issue will be fixed in Cosmos SDK v0.45.12, however one of the ways it was fixed was through calling the WithViper() method on initClientCtx. Reference: cosmos/cosmos-sdk#13695 (comment)

@arnabghose997 arnabghose997 added the enhancement New feature or request label Jan 31, 2023
@arnabghose997 arnabghose997 self-assigned this Jan 31, 2023
@arnabghose997 arnabghose997 changed the title fix: added WithViper() method to get TmNode client fix: added WithViper() method in initClientCtx to get the TmNode client Jan 31, 2023
@arnabghose997 arnabghose997 merged commit 7bc76d2 into release/v0.1.x Jan 31, 2023
@arnabghose997 arnabghose997 deleted the unshadow-tendermint-node-client branch January 31, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant