-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(client): allow overwritting client.toml #17513
Conversation
simapp/simd/cmd/commands.go
Outdated
@@ -95,10 +135,10 @@ func initAppConfig() (string, interface{}) { | |||
customAppTemplate := serverconfig.DefaultConfigTemplate + ` | |||
[wasm] | |||
# This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries | |||
query_gas_limit = 300000 | |||
query-gas-limit = {{ .WASM.QueryGasLimit }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be backported to all previous versions to give a proper example.
client/config/config.go
Outdated
} | ||
|
||
// ReadFromClientConfig reads values from client.toml file and updates them in client Context | ||
func ReadFromClientConfig(ctx client.Context) (client.Context, error) { | ||
// CreateClientConfigAndContext reads the client.toml file and returns a new populated client.Context |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name is long but defines better what the function does than how ReadFromClientConfig
was named.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
EDIT: won't do until requested. |
@Mergifyio backport release/v0.50.x |
✅ Backports have been created
|
(cherry picked from commit 6601713) # Conflicts: # CHANGELOG.md # client/config/config.go # client/config/config_test.go # client/tx/factory.go # simapp/simd/cmd/commands.go # simapp/simd/cmd/root.go # simapp/simd/cmd/root_v2.go # simapp/simd/cmd/testnet.go
Description
Closes: #17253
I will make this PR non-breaking and backport this in v0.50.1.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
make lint
andmake test
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change