Open TotallyNotChase opened 4 months ago
Tangentially related but the framework should use availableUTxOs
wherever possible to obtain own utxos, instead of querying the own addresses.
Also, someUTxO
impl for GYTxMonadNode
should really be replaced with the randomTxOutRef
from GYUTxO
As it currently stands, the field envUsedSomeUTxO is actually useless.
That is true, I think it never served any meaningful purpose and was just there in case we wanted to give it some meaning.
We notice that the returned UTxO isn't actually removed from envUsedSomeUTxO. This seems problematic since the point of envUsedSomeUTxO is to track previously yielded someUTxOs so they aren't returned repeatedly.
I think you meant that it is not added to envUsedSomeUTxOs
?
Describe the bug If we look at the current
someUTxO
implementation forGYTxMonadNode
:We notice that the returned UTxO isn't actually removed from
envUsedSomeUTxO
. This seems problematic since the point ofenvUsedSomeUTxO
is to track previously yieldedsomeUTxO
s so they aren't returned repeatedly.As it currently stands, the field
envUsedSomeUTxO
is actually useless.Expected behavior
envUsedSomeUTxO
should be updated accordingly.Additional context
Has this always been like this? I thought it used to work.