Quick question: I'm trying to identify two unique calls coming from a smart contract (known in advance), each will call my smart contract in the same way. Is there any way to identify which of the two callsites in the external contract were used? Some inline assembly or other reflection options that could reveal this information? Thanks!
Sep 8, 2020, 6:52 AM
I'm not quite sure I understand. So the caller (msg.sender) is the same, they call the same function with the same parameters. do you want to somehow keep track of how many transactions like this happened?
Sep 8, 2020, 7:19 AM
There is one tx.origin which chains several contract calls between different contracts. I wanted to figure out a way to get all this data ( what happened in previous contract calls of this tx )
Sep 8, 2020, 8:00 AM
You only have msg.sender and tx.origin available unfortunately, there is no other native way to track the chain
Sep 8, 2020, 8:04 AM
Not even in inline assembly options?
Sep 8, 2020, 8:05 AM
No, I don't think so, inline assembly can't provide more data than what the transaction offers
Sep 8, 2020, 8:06 AM