Skip to content

Commit

Permalink
Generalizations to allow one-chain script to be debugged (cosmos#372)
Browse files Browse the repository at this point in the history
* add some generalizations to make scripts/one-chainz easier to debug / customize

* add SILENT=1 as default

* fix redirect for mnemonics

* Fix error with parsing denom path containing '-'

* update to build from patched SDK with proto bug fix

* remove change to go.mod

* ran "go mod tidy" to hopefully clean up errors...

* Utilized NewCoin() rather than populating structure directly

Co-authored-by: Mark <[email protected]>
  • Loading branch information
Mark Jackson and Mark authored Jan 21, 2021
1 parent 07fad96 commit f776edf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 71 deletions.
2 changes: 1 addition & 1 deletion cmd/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ $ %s q bal ibc-1 --ibc-denoms`, appName, appName, appName)),
switch {
case c.Amount.Equal(sdk.NewInt(0)):
case c.Denom == d.IBCDenom():
out = append(out, sdk.NewCoin(d.GetFullDenomPath(), c.Amount))
out = append(out, sdk.NewCoin(d.IBCDenom(), c.Amount))
default:
out = append(out, c)
}
Expand Down
Loading

0 comments on commit f776edf

Please sign in to comment.