I am testing a contract in SmartPy that uses a contract call (similar to the Collatz example).
Contract 'A' sends a transaction to contract 'B' with some data.
Contract 'B' does some computation and sends data back to contract 'A' including a parameter
Contract 'A' receives the data from contract 'B' and does some verification including:
sp.verify(params.validState == True)
Now, I am trying to write a test scenario in which
validState is false, and so contract 'A' should fail the operation.
The problem is that since the first transaction from Contract 'A' to 'B' is valid, I cannot use the normal
valid = False flag in the first transaction.
Is there a solution for this?