You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently updating the SDK global config for the address prefix everytime before sending a transaction: cli/ignite/pkg/cosmosclient/cosmosclient.go
Or also when the client is created in #2743
This method is a bit unclean as we must interact with global vars...
This method is kind of impose by the current structure of the SDK since it relies on the global config to parse the prefix when determining the address of an account.
We'll be able to do this better in v0.52 as we can set an address codec in the client context.
However, the global sdk config will still need to be used and set (until no other modules depend on it).
salmad3
changed the title
cosmosclient: improve account prefix management for txs
UPDATE: improve account prefix management for txs in cosmosclientJan 23, 2025
We are currently updating the SDK global config for the address prefix everytime before sending a transaction: cli/ignite/pkg/cosmosclient/cosmosclient.go
Or also when the client is created in #2743
This method is a bit unclean as we must interact with global vars...
This method is kind of impose by the current structure of the SDK since it relies on the global config to parse the prefix when determining the address of an account.
The first step of this issue is to design and propose an issue in the SDK repo more flexibility to manage account prefix without relying on a global configuration.
For example:
Adding
accountPrefix
as attribute of transaction factory type: https://github.com/cosmos/cosmos-sdk/blob/1932ef175da024cf4abb5d91e03a590625320eee/client/tx/factory.go#L23The text was updated successfully, but these errors were encountered: