-
Notifications
You must be signed in to change notification settings - Fork 16
[BUG - found cause] zero ada error mistakenly raised #16
Comments
Okay, just found out that this is a bad minimal reproducible example, there's no bug in there actually in this example. Since it is logical that there can't be only the fakecoins in the user's wallet. Will have to find time and check back at the problem where it was happening and try to create correct minimal example. |
I've come across this issue once again and I've found the cause. When I look at the user's UTXOs ( [ ( TxOutRef
{ txOutRefId = 157 a6dc880c001b691c6be2bc02f5d1b9dbfca6244a2fc2292a631cf38f560ac,
txOutRefIdx = 3
},
TxOut
{ txOutAddress = Address {addressCredential = PubKeyCredential 918 f37f350507ca60236ef12a001f7405198df34d68e48178b75d98a, addressStakingCredential = Nothing},
txOutValue = Value (Map [(,Map [("", 2000000)]), (3 d88123b74593927b403fb99108a5b7594fc03ad8677d95172df8778, Map [("asset", 1000000000)])]),
txOutDatumHash = Nothing
}
),
( TxOutRef
{ txOutRefId = 157 a6dc880c001b691c6be2bc02f5d1b9dbfca6244a2fc2292a631cf38f560ac,
txOutRefIdx = 4
},
TxOut
{ txOutAddress = Address {addressCredential = PubKeyCredential 918 f37f350507ca60236ef12a001f7405198df34d68e48178b75d98a, addressStakingCredential = Nothing},
txOutValue = Value (Map [(,Map [("", 29999988000000)]), (3 d88123b74593927b403fb99108a5b7594fc03ad8677d95172df8778, Map [("asset", 198000000000)])]),
txOutDatumHash = Nothing
}
)
]
The problem is that when I want to send a transaction that does I don't think this is right behaviour since the user has enough Ada still at his address. Correct me if I'm wrong 🙌 |
I guess it can be caused by plutus bug in Sorry for late reply |
I've posted #15 issue some time ago and when I was digging deeper into the actual problem I've found out that there is probably a bug somewhere and created the minimal reproducible example.
The following code fails the test with the zero ada error even when there should be no such error.
I found out that this happens when I changed this package in the project from commit
64f37881c3c6a1ece104413e95b6a272d22dbfaa
to2077162655a62f9b6404e153eed3ef56c65cad67
EDIT:
The error occurs with both of the commits, so the bug is implemented somewhere further in the past.
Modifying this line:
to this:
solves the error.
However, it should work either way in my opinion.
Buggy code
The text was updated successfully, but these errors were encountered: