Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Update to ES6 and MetaMask new API #1039

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jochasinga
Copy link

  • Update MetaMask deprecated API: i.e. call to enable() is replaced with request().
  • Update to ES6: It is safe to say ES6 async - await is a new standard all Javascript users know, and it is way more readable than callbacks and promise chaining.
  • Minor style refactors: removing trailing spaces and unnecessary code block indentations

NOTE: Either the corresponding functions in the App object in the other petshop template should be marked async or add instructions here for the user to add themselves for this change.

Update MetaMask deprecated API -- call to `enable()` is replaced with `request()`.
It is safe to say ES6, in particular `async - await` is a new standard all Javascript users know, and it is way more readable than callbacks and promise chaining.

NOTE: The corresponding functions in petshop box template should be marked `async` too.
@eggplantzzz
Copy link
Contributor

Thanks for the PR @jochasinga! We'll get it reviewed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants