-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[fastx adapter] We do not update the previous_transaction
of mutable objects
#312
Comments
@oxade Is this now being taken care of? |
@oxade any news :) |
It turns out that we are not updating previous_transaction properly in some paths. |
Can you pinpoint exactly what the holes are? |
In fact, it would have! What we are missing in this case is the code in |
Great. Should I revive the core logic in the PR or do you wanna take this up? |
I will probably take a look |
Each object has a
previous_transaction
field which needs to contain the transaction digest that created or mutated the object last. However, right now we seem to not do that in the adapter, and have objects around with inconsistent state (new contents, oldprevious_transaction
).In PR #311 I added a hack to the temp_storage to add this information on object write. However this is fragile since we may use this information elsewhere (right now I do not think we do).
What about the type checking logic that provides the mutable objects to the execution, ensuring the tx_digest in
previous_transaction
is correct, somewhere around here?https://github.com/MystenLabs/fastnft/blob/e856db7503c5c0218f65bde07e34c068abf9f2de/fastx_programmability/adapter/src/adapter.rs#L562
The text was updated successfully, but these errors were encountered: