This PR related to #82 .
It check the selected network and the network Kredits contract deployed at and notify the user with a simple alert in case both networks are not the same without running kredits.setup().
This PR related to #82 .
It check the selected network and the network Kredits contract deployed at and notify the user with a simple alert in case both networks are not the same without running `kredits.setup()`.
This belongs in a separate function or config. But from what I remember I'm pretty sure you can get network names from the ether.js library/API anyway, so there's no need to re-implement our own version of this.
This belongs in a separate function or config. But from what I remember I'm pretty sure you can get network names from the `ether.js` library/API anyway, so there's no need to re-implement our own version of this.
We run a local network for development, making it at least two. But also, there could be more networks in the future, hence the plural in availableNetworks() (as opposed to getNetwork() or similar).
We talked about this in the call yesterday and @bumi had some good ideas. Would be good to write them down in either the issue or PR.
@haythem96 By the way, it would be super useful if you could join the weekly call from time to time to talk things through with other people and also stay up to date with the rest of the project.
We run a local network for development, making it at least two. But also, there could be more networks in the future, hence the plural in `availableNetworks()` (as opposed to `getNetwork()` or similar).
We talked about this in the call yesterday and @bumi had some good ideas. Would be good to write them down in either the issue or PR.
@haythem96 By the way, it would be super useful if you could join the weekly call from time to time to talk things through with other people and also stay up to date with the rest of the project.
haythemsellami
(Migrated from github.com)
reviewed 2019-07-25 13:07:22 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR related to #82 .
It check the selected network and the network Kredits contract deployed at and notify the user with a simple alert in case both networks are not the same without running
kredits.setup().I'm not really sure if this is the right way to do it with the existing project architecture...
This looks/sounds to me like it doesn't work with the local development network, or does it?
@@ -18,0 +19,4 @@kreditsNetworkName = "Morden Test";break;case '3':kreditsNetworkName = "Ropsten Test";This belongs in a separate function or config. But from what I remember I'm pretty sure you can get network names from the
ether.jslibrary/API anyway, so there's no need to re-implement our own version of this.@@ -137,2 +137,4 @@},getKreditsDeployedNetwork() {return Kredits.availableNetworks();I don't understand how one can get a single network from a list of networks without filtering here.
@@ -137,2 +137,4 @@},getKreditsDeployedNetwork() {return Kredits.availableNetworks();mm I thought that there will be only the network where kredits is deployed at (etiher rinkeby, ropsten, mainnet...), or no ?
@@ -137,2 +137,4 @@},getKreditsDeployedNetwork() {return Kredits.availableNetworks();We run a local network for development, making it at least two. But also, there could be more networks in the future, hence the plural in
availableNetworks()(as opposed togetNetwork()or similar).We talked about this in the call yesterday and @bumi had some good ideas. Would be good to write them down in either the issue or PR.
@haythem96 By the way, it would be super useful if you could join the weekly call from time to time to talk things through with other people and also stay up to date with the rest of the project.
@@ -137,2 +137,4 @@},getKreditsDeployedNetwork() {return Kredits.availableNetworks();yeah really sorry for missing the last calls... was trying to join but I miss for some reasons... I will be available on the next ones.
Pull request closed