Skip to content

Commit

Permalink
Ensures debug flag is set on the API for any calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Vachon committed Jan 31, 2019
1 parent cbdf0f9 commit bab7b6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eosc/cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func getAPI() *eos.API {
}
api.Header.Add(headerArray[0], headerArray[1])
}

api.Debug = viper.GetBool("global-debug")

return api
}

Expand Down Expand Up @@ -114,8 +117,6 @@ func pushEOSCActions(api *eos.API, actions ...*eos.Action) {
}

func pushEOSCActionsAndContextFreeActions(api *eos.API, contextFreeActions []*eos.Action, actions []*eos.Action) {
api.Debug = viper.GetBool("global-debug")

for _, act := range contextFreeActions {
act.Authorization = nil
}
Expand Down

0 comments on commit bab7b6f

Please sign in to comment.