Consensys / armlet

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

Call this.login() instead of login.do #84

Closed nbanmp closed 5 years ago

nbanmp commented 5 years ago

With this.login implemented https://github.com/ConsenSys/armlet/pull/80/files, we can reuse some code by replacing blocks like:

if (!this.accessToken) {
      const tokens = await login.do(this.ethAddress, this.password, this.apiUrl)
      this.accessToken = tokens.access
      this.refreshToken = tokens.refresh
}

with

await this.login()
tagomaru commented 5 years ago

see #97