Use ethers.js instead of the old web3 #29

Merged
bumi merged 8 commits from ethers into master 2018-04-04 12:20:55 +00:00
Showing only changes of commit 0812ff3467 - Show all commits
+2
View File
@@ -31,6 +31,8 @@ export default Service.extend({
ethProvider: null,
currentUserAccounts: null, // default to not having an account. this is the wen web3 is loaded.
fsmanuel commented 2018-04-04 10:59:28 +00:00 (Migrated from github.com)
Review

❤️

❤️
// this is called called in the routes beforeModel(). So it is initialized before everything else
// and we can rely on the ethProvider and the potential currentUserAccounts to be available
initEthProvider: function() {
return new Ember.RSVP.Promise((resolve, reject) => {
let ethProvider;