Merge pull request #149 from 67P/chore/dao_address
Rename kernel address to DAO address
This commit was merged in pull request #149.
This commit is contained in:
@@ -94,11 +94,11 @@ With IPFS and Ethereum/ganache running, you can now start this Ember app.
|
|||||||
* `npm link kredits-contracts` - link the local `kredits-contracts` package
|
* `npm link kredits-contracts` - link the local `kredits-contracts` package
|
||||||
* `npm run start:local` - WEB3_PROVIDER_URL=http://localhost:7545 must be set for local settings
|
* `npm run start:local` - WEB3_PROVIDER_URL=http://localhost:7545 must be set for local settings
|
||||||
|
|
||||||
If you restart the devchain your network ID changes. So kredits-contracts does not find the correct DAO Kernel address.
|
If you restart the devchain your network ID changes. So kredits-contracts does not find the correct DAO address.
|
||||||
If that is the case the DAO address must be provided as `KREDITS_KERNEL_ADDRESS` environment variable.
|
If that is the case the DAO address must be provided as `KREDITS_DAO_ADDRESS` environment variable.
|
||||||
|
|
||||||
* `npm run dao:address` in the kredits-contracts repo to find your address
|
* `npm run dao:address` in the kredits-contracts repo to find your address
|
||||||
* `KREDITS_KERNEL_ADDRESS=<0xYOURADDRESS> npm run start:local`
|
* `KREDITS_DAO_ADDRESS=<0xYOURADDRESS> npm run start:local`
|
||||||
|
|
||||||
#### 4. Metamask network
|
#### 4. Metamask network
|
||||||
|
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ module.exports = function(environment) {
|
|||||||
if (process.env.WEB3_PROVIDER_URL) {
|
if (process.env.WEB3_PROVIDER_URL) {
|
||||||
ENV.web3ProviderUrl = process.env.WEB3_PROVIDER_URL;
|
ENV.web3ProviderUrl = process.env.WEB3_PROVIDER_URL;
|
||||||
}
|
}
|
||||||
if (process.env.KREDITS_KERNEL_ADDRESS) {
|
if (process.env.KREDITS_DAO_ADDRESS) {
|
||||||
ENV.kreditsKernelAddress = process.env.KREDITS_KERNEL_ADDRESS;
|
ENV.kreditsKernelAddress = process.env.KREDITS_DAO_ADDRESS;
|
||||||
}
|
}
|
||||||
if (process.env.KREDITS_APM_DOMAIN) {
|
if (process.env.KREDITS_APM_DOMAIN) {
|
||||||
ENV.kreditsApmDomain = process.env.KREDITS_APM_DOMAIN;
|
ENV.kreditsApmDomain = process.env.KREDITS_APM_DOMAIN;
|
||||||
|
|||||||
Reference in New Issue
Block a user