mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
make sfStateCount absent when it is 0
This commit is contained in:
@@ -869,7 +869,10 @@ SetHook::destroyNamespace(
|
||||
return tefBAD_LEDGER;
|
||||
}
|
||||
|
||||
sleAccount->setFieldU32(sfHookStateCount, stateCount);
|
||||
if (stateCount == 0)
|
||||
sleAccount->makeFieldAbsent(sfHookStateCount);
|
||||
else
|
||||
sleAccount->setFieldU32(sfHookStateCount, stateCount);
|
||||
|
||||
view.update(sleAccount);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user