0

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...

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.