Implementing Transactions #5437
Unanswered
LubieKakao1212
asked this question in
Mod Dev Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi I am trying to implement something similar to fabric-transfer-api and I encountered a concept level issue. I wanted to ask how it's delt with in fabric. I can't figure that out from reading the source.
The issue is as follows:
You have a block which has provides an interface exposing some value, however this value is defined by the state of an item in the block's inventory.
How would I go about implementing a setter for that value so it correctly supports transaction rollbacks?
The problem is the block doesn't have a transaction aware storage implemented by itself, but rather has an inventory which can be wrapped in a storage.
All reactions