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
It was not possible to call close_account for proxy created via module-nft because close_account requires no other reserved token and proxy is the only way to call close_account which means it will have reserved token.
The solution is to make close_account remove all the proxies first and then attempt to close the account.
let (_, proxy_deposit) = pallet_proxy::Proxies::<T>::take(&class_info.owner);
<T as pallet_proxy::Trait>::Currency::unreserve(&class_info.owner, proxy_deposit);
The text was updated successfully, but these errors were encountered:
It was not possible to call
close_account
for proxy created via module-nft becauseclose_account
requires no other reserved token and proxy is the only way to callclose_account
which means it will have reserved token.The solution is to make
close_account
remove all the proxies first and then attempt to close the account.Before paritytech/substrate#7557 is ready, we can just do this to remove proxies
The text was updated successfully, but these errors were encountered: