Skip to content

Commit

Permalink
added more print statements, log out returnError() return
Browse files Browse the repository at this point in the history
  • Loading branch information
Aven Dauz authored and Aven Dauz committed Aug 6, 2021
1 parent 476114c commit 1d178d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/curium/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (k Keeper) NewMsgBroadcaster(keyringDir string, cdc *codec.Codec) MsgBroadc
func DoBroadcast (resp chan *MsgBroadcasterResponse, keyringDir string, cdc *codec.Codec, curiumKeeper Keeper, accKeeper *keeper.AccountKeeper, ctx sdk.Context, msgs []sdk.Msg, from string, state AccountState) {

returnError := func(err error) {

curiumKeeper.Logger(ctx).Error("DoBroadcast, returnError()", "error", err)
resp <- &MsgBroadcasterResponse{
Error: err,
}
Expand Down Expand Up @@ -230,7 +230,7 @@ func DoBroadcast (resp chan *MsgBroadcasterResponse, keyringDir string, cdc *cod
return
}


fmt.Println("***** Seq num before update", state.seqNum)

state, err = updateAccountState(accnt, state)

Expand All @@ -239,7 +239,7 @@ func DoBroadcast (resp chan *MsgBroadcasterResponse, keyringDir string, cdc *cod
return
}


fmt.Println("***** Seq num after update", state.seqNum)
// Create a new TxBuilder.
txBuilder := auth.NewTxBuilder(
utils.GetTxEncoder(cdc),
Expand Down

0 comments on commit 1d178d5

Please sign in to comment.