Using gaiacli config node
breaks ~/.gaiacli/config/config.toml
#3899
Labels
gaiacli config node
breaks ~/.gaiacli/config/config.toml
#3899
Summary of Bug
When the user uses the
gaiacli config node
command to set thenode
value, the new value is written successfully to the~/.gaiacli/config/config.toml
file, however a new line is created with characters from the previously-setnode
value.In short, using the
gaiacli config node <newvalue>
command will break yourconfig.toml
file.This seems to only occur when the new
node
value has 2-or-more fewer characters than the old/originalnode
value.Steps to Reproduce
cosmos-sdk
and ensuregaiacli
is working as expectedgaiacli config node my_local_host:26657
. Note that this new value is 19 characters long.config.toml
file by issuing the command:cat ~/.gaiacli/config/config.toml
. You should see the following output in your terminal:gaiacli config node localhost:26657
. Note that this new value is 15 characters long, 4 characters shorter than the value in step test in tests/tendermint/main.go fails #2 aboveconfig.toml
file by issuing the command:cat ~/.gaiacli/config/config.toml
. You should see the following output in your terminal:Note that three characters (
57"
) are now present on the next line in the config file.6. Attempt to perform any action with
gaiacli
. For example, execute the commandgaiacli status
7. Observe the following error message:
For Admin Use
The text was updated successfully, but these errors were encountered: