How to get address of contract deployed by factory contract

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/ethdev

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • SonarQube - Static code analysis for 29 languages.
  • talent.io - Download talent.io’s Tech Salary Report
  • Scout APM - Truly a developer’s best friend
  • openzeppelin-contracts

    OpenZeppelin Contracts is a library for secure smart contract development.

    are you getting the latest contract within solidity or from the front end? If you are querying your smart contract from the front end you will have a race condition. As others said you can prevent this either by making it Ownable (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol), or maybe adding a mapping that saves which address created which contracts (this will cost more gas, however, because you are creating additional storage costs).

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts