You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The orml-utilities crate provides us with with_transaction_result for automatically rolling back changes for extrinsics that have multiple steps that may fail after making storage writes. this is more graceful than manually rolling state back.
Todos
Refactor extrinsics of chocolate pallet to use with_transaction_result
simplify utility functions that rollback, e.g reward of ProjectIO
Simplify utility functions that assume all works out e.g reward_user (implemented on pallet)
The text was updated successfully, but these errors were encountered:
Context
The orml-utilities crate provides us with
with_transaction_result
for automatically rolling back changes for extrinsics that have multiple steps that may fail after making storage writes. this is more graceful than manually rolling state back.Todos
with_transaction_result
reward
ofProjectIO
reward_user
(implemented on pallet)The text was updated successfully, but these errors were encountered: