-
Notifications
You must be signed in to change notification settings - Fork 124
test: implement a test where an output note is consumed as an input note #1363
Description
In #1360 we fixed an issue that popped up after running the miden-client's integration tests. This issue wasn't caught in the base's tests because it happened in a specific situation. An output note with note inputs was turned into an input note and executed. I think for the original problem to appear, get_inputs needs to be called by the note.
We should add a unit test to cover this in the future.
Something that would probably be good to have (even if we decide this PR is not the best solution) is a test that executes a transaction that uses a note that was output from a previous transaction. This was the only difference between client and base tests, and why it wasn't caught here in the first place.
Originally posted by @igamigo in #1360 (comment)