Return address from a method

ametenameten Member Posts: 7
I have a contract which creates another contract instance inside its method and returns the contract address as return parameter. When I call the method from JavaScript, I have got transaction hash instead of new contract address. Since the original transaction is not creation of a contract, I cannot retrieve the contract address from transaction receipt.

How can I get address of a contract which is dynamically created by another contract?


Sign In or Register to comment.