truffle-react-redux icon indicating copy to clipboard operation
truffle-react-redux copied to clipboard

when contract migrated, write address into web subproject

Open gasolin opened this issue 7 years ago • 1 comments

currently, we have to manually write CONTRACT_ADDRESS when contract migrated.

in contract migration script we could get contract deployed address.

We could write these addresses into web subproject autimatically, ex in /lib/addresses.js with format

export const CONTRACTNAME1_ADDRESS = '0x....';
export const CONTRACTNAME2_ADDRESS = '0x....';

gasolin avatar Apr 23 '18 02:04 gasolin

soft link might works https://truffleframework.com/tutorials/getting-started-with-drizzle-and-react#link-up-our-build-artifacts

gasolin avatar Nov 11 '18 05:11 gasolin