Skip to content

Commit

Permalink
Address cli behaviour on tx and query errors (CosmWasm#1125)
Browse files Browse the repository at this point in the history
* Add SilenceUsage missing flags

* Remove old script

* Edit script comment
  • Loading branch information
pinosu authored Jan 10, 2023
1 parent 1037cee commit 558147d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
28 changes: 0 additions & 28 deletions contrib/local/00-genesis.sh

This file was deleted.

2 changes: 1 addition & 1 deletion contrib/local/start_node.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
set -eu

wasmd start --rpc.laddr tcp://0.0.0.0:26657 --log_level=info --trace # --trace # does not work anymore: --log_level="main:info,state:debug,*:error"
wasmd start --rpc.laddr tcp://0.0.0.0:26657 --log_level=info --trace #remove trace flag if you don't wantg the stack trace to be printed
2 changes: 2 additions & 0 deletions x/wasm/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func GetCmdLibVersion() *cobra.Command {
fmt.Println(version)
return nil
},
SilenceUsage: true,
}
return cmd
}
Expand Down Expand Up @@ -103,6 +104,7 @@ func GetCmdBuildAddress() *cobra.Command {
cmd.Println(keeper.BuildContractAddressPredictable(codeHash, creator, salt, msg).String())
return nil
},
SilenceUsage: true,
}
decoder.RegisterFlags(cmd.PersistentFlags(), "salt")
return cmd
Expand Down

0 comments on commit 558147d

Please sign in to comment.