I have a Factory contract which creates new contracts. How do I get the new contract into my drizzle-react web app?
I am using to send the transaction to create a new contract but I don't know how to get the data it returns...
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
In summary, the factory makes the deployed contract addresses discoverable. This is by emitting an event with created address and/or storing them in an array with functions to explore the state - preferably both.
The app then uses the ABI for the deployed contract(s) at the addresses where the factory informs it something exists.
Hope it helps.