Add localhost environment (#157)

This commit is contained in:
Szymon Szlachtowicz 2021-07-26 13:55:50 +02:00 committed by GitHub
parent aaa9bcd721
commit c88d95a2a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -20,8 +20,8 @@ const contracts = {
directoryContract: '0xfEB894511bC1B92EFA4f7fa050fC0BF7697Df6a2', directoryContract: '0xfEB894511bC1B92EFA4f7fa050fC0BF7697Df6a2',
}, },
1337: { 1337: {
votingContract: '0xd862f2550F37bE4DCb42Ec684b3D2528635d2Bc9', votingContract: process.env.GANACHE_VOTING_CONTRACT ?? '0x0000000000000000000000000000000000000000',
directoryContract: '0xbb8243e9f5b55C9e7E64e118c99EE78a7080fbf9', directoryContract: process.env.GANACHE_DIRECTORY_CONTRACT ?? '0x0000000000000000000000000000000000000000',
}, },
} }

View File

@ -67,6 +67,8 @@ module.exports = (env) => {
}), }),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env.ENV': JSON.stringify(environment), 'process.env.ENV': JSON.stringify(environment),
'process.env.GANACHE_VOTING_CONTRACT': JSON.stringify(process.env.GANACHE_VOTING_CONTRACT),
'process.env.GANACHE_DIRECTORY_CONTRACT': JSON.stringify(process.env.GANACHE_DIRECTORY_CONTRACT),
}), }),
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
process: 'process/browser.js', process: 'process/browser.js',