Consensys / armlet

a MythX API client wrapper
MIT License
16 stars 7 forks source link

Bug Fix: set token after login on getStatusOrIssues #98

Closed tagomaru closed 5 years ago

tagomaru commented 5 years ago

armlet sends login request to MythX API per calling getStatusOrIssues if accessToken is not set. I think clients using armlet send getIssues after getStatus. In this usecase, armlet send login request two times since it never sets accessToken of instance.

As-Is: getStatus -> getIssues (login requests two times)

AS-IS

To-Be: getStatus -> getIssues (login one time)

To-Be