These are chat archives for Nethereum/Nethereum

9th
Jun 2017
om
@omkarkhair
Jun 09 2017 07:31
I'm sure there is a way in Ethereum to fetch the address of a child contract produced from a transaction with a factory contract. I'm not able to locate it though. This somehow isn't part of the TransactionReceipt. What am I missing?
om
@omkarkhair
Jun 09 2017 07:48
@juanfranblanco fiddler shows me that the RPC response to Nethereum transaction receipt request has 'to' and 'from' fields to identity factory and child contract. The TransactionReceipt object does not seem to have those details.
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0xcfb7ab385a1031f691019a6f8d24332dc12fe80883082e90ff8b8701676f641e",
    "blockNumber": "0x4fa56",
    "contractAddress": null,
    "cumulativeGasUsed": "0x15f90",
    "from": "0x7df20af045869764f94a54edf9b00e5c1fef3244",
    "gasUsed": "0x15f90",
    "logs": [],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "root": "0x503d461eba4038f06891b7bea0eb1f19dd67cfcfd94f79f86d23e336931c8b54",
    "to": "0x3e0b461314dbcbf6f61b698c56a55e41d799f0ea",
    "transactionHash": "0x061214b94cf9c1d426dd39ff705de4a18dc1e0fe9a527f1815d7a5fa89091867",
    "transactionIndex": "0x0"
  }
}
Is it possible to fetch these details some other way in Nethereum at this moment?
om
@omkarkhair
Jun 09 2017 09:08
My bad here - the to and from field denote the sender and the factory contract respectively.
Juan Blanco
@juanfranblanco
Jun 09 2017 14:07
@omkarkhair hi
you will need to raise an event
to track the address of the contract created
Edson Alcalá
@EdsonAlcala
Jun 09 2017 14:23
@juanfranblanco how can I participate more actively with Nethereum?
Juan Blanco
@juanfranblanco
Jun 09 2017 14:23
Feel free to do any pull requests
anywhere :D