This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Improve pallet asset implementation to avoid potential reentrency issue. #10432
Labels
J0-enhancement
An additional feature request.
Z2-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
Currently the method
FrozenBalance::on_died
is called while there is some pending change in storage.If the implementation of
on_died
call into the pallet asset again, there can be some change which are discarded when we finally commit the pending change above.This is/will be documented with #10431 but ideally it should be improved. It is quite error prone.
Sidenote: similar issue in the past #7605
The text was updated successfully, but these errors were encountered: