Use ethers.js instead of the old web3 #29
Reference in New Issue
Block a user
Delete Branch "ethers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
the web3 we are using is old and everything will change with web3 1.0
which is currently in beta for ages.
ethers.js seems to be a bit more lightweight and implements pretty much
the same API so let's give it a try.
@@ -32,1 +34,4 @@let controller = this.subject({init: function() { }});addFixtures(controller);I think a cleaner way would be to abstract adding the contract handlers into its own function, and then just overwrite that one in the test. That would make it easier to reason with in both the controller as well as the test.
@@ -44,2 +31,3 @@web3Provided: false, // Web3 provided (using Mist Browser, Metamask et al.)ethProvider: null,currentUserAccounts: null, // default to not having an account. this is the wen web3 is loaded.❤️
@@ -32,1 +34,4 @@let controller = this.subject({init: function() { }});addFixtures(controller);Good idea! We'll do that in a follow up PR.
🎉