NonZeroRefCount

Error v101 → current 0.4

There are still references preventing the account from being purged.

Encountered by: developerswallets

Why This Error Exists

Substrate tracks why accounts need to exist via reference counts. An account can't be deleted while its reference count is positive. Clean up all dependencies first.

From Chain Metadata

There is a non-zero reference count preventing the account from being purged.

What This Means

There are still references preventing the account from being purged.

Common Causes

  • Account still has stake, locks, or other holds
  • Other pallets still reference this account
  • Reference count hasn't been properly decremented

How to Fix

  • Remove all stake and delegation
  • Clear all locks and reserves
  • Wait for all dependent operations to complete

Storage to Check

Runtime Info

Pallet Index
0
Error Index
4
Error Code
0.4
Runtime Version
v393