-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wallet's utxos in Emulator's diskstate have incorrect indexes #695
Comments
There is no bug, at least no reused
|
8 tasks
berewt
added a commit
that referenced
this issue
Oct 24, 2022
berewt
added a commit
that referenced
this issue
Oct 24, 2022
berewt
added a commit
that referenced
this issue
Oct 25, 2022
kayvank
pushed a commit
that referenced
this issue
Oct 27, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Accessing the wallet's utxos from the WalletState of the EmulatorTrace results in TxOutRefs with indexes in the range 0-9 for all wallets, this cannot be correct because each wallet must have unique utxos. The Contract sees unique TxOutRefs for each wallet, e.g. w1 uses index range 50-59 and w2 uses 20-29.
Steps to reproduce the behavior
There are currently workarounds for this bug in existing tests
mustSpendPubKeyOutput
plutus-context tests, such as this. Please remove workarounds once fixed.There is a commented out test to recreate this bug, see here. Edit: this also now affects MustReferenceOutput tests
Actual Result
Getting
TxOutRef
fromWalletState
,w1TxoRefs
will have indexes in range 0-9.Logging in Contract will print indexes in range 50-59
Expected Result
Wallets' utxos should be consistent.
Describe the approach you would take to fix this
No response
System info
a8540db
The text was updated successfully, but these errors were encountered: