Skip to content
Commit 0d952330 authored by Muharem Ismailov's avatar Muharem Ismailov Committed by Tomasz Waszczyk
Browse files

Assets: can_decrease/increase for destroying asset is not successful (#3286)

Functions `can_decrease` and `can_increase` do not return successful
consequence results for assets undergoing destruction; instead, they
return the `UnknownAsset` consequence variant.

This update aligns their behavior with similar functions, such as
`reducible_balance`, `increase_balance`, `decrease_balance`, and `burn`,
which return an `AssetNotLive` error for assets in the process of being
destroyed.
parent 7ac3a048
Pipeline #484309 waiting for manual action with stages
in 4 minutes and 30 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment