If I'm correct the nonce is responsible for the order transactions are executed. Let assume you have two transactions T1 & T2. T1 depends on T2. So I want to have an order T1 then T2. This is done by giving T1 the nonce and T2 nonce + 1. (please correct me if that is false)
Now in some case, there might be the situation that T2 depends also on the state of a contract. So I want to make sure that T1 is executed only then T2 can be executed. Is there a way to do this?
So actually to make sure T1 & T2 are included in the same block. I think that could be done by a costume contract but not sure if there is a better or kind of standard solution to it.
Thanks a lot for any advice!
PS: Example: I want to buy something. T1 deposit money (or make approval) to a contract. T2 buy something using the contract.
Real Example: I want to buy a token on Ether Delta. T1: deposit. T2: Buy token. It doesn't make sense to deposit if someone was faster and bought that token for the given price already.