Skip to content

Commit

Permalink
fix ante. set lcd log to debug (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman authored and rigelrozanski committed Jun 21, 2018
1 parent a3e04ce commit 782afbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/lcd/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func InitializeTestLCD(t *testing.T, nValidators int, initAddrs []sdk.Address) (
config.TxIndex.IndexAllTags = true

logger := log.NewTMLogger(log.NewSyncWriter(os.Stdout))
logger = log.NewFilter(logger, log.AllowError())
logger = log.NewFilter(logger, log.AllowDebug())
privValidatorFile := config.PrivValidatorFile()
privVal := pvm.LoadOrGenFilePV(privValidatorFile)
privVal.Reset()
Expand Down
4 changes: 2 additions & 2 deletions x/auth/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ func NewAnteHandler(am AccountMapper, fck FeeCollectionKeeper) sdk.AnteHandler {
}
fee := stdTx.Fee
chainID := ctx.ChainID()
// XXX: major hack; need to get ChainID
// XXX/TODO: major hack; need to get ChainID
// into the app right away (#565)
if chainID == "" {
chainID = viper.GetString("chain-id")
}
signBytes := StdSignBytes(ctx.ChainID(), accNums, sequences, fee, msg, memo)
signBytes := StdSignBytes(chainID, accNums, sequences, fee, msg, memo)

// Check sig and nonce and collect signer accounts.
var signerAccs = make([]Account, len(signerAddrs))
Expand Down

0 comments on commit 782afbb

Please sign in to comment.