-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Problem
We have a lot of records in ### Deque. We want to clear all records from Deque
In our cases we don't need to clear the data on the blockchain, we can overwrite it
Solution
I suggest adding a method clear for soft delete that sets Tail to 0.
OR
Change visibility methods from private to public
tail
head
set_tail
set_head
Temporary Solution
Now, I need to do it manually through the code
let full_key = namespaces_with_key(&["players".as_bytes()], b"t");
ctx.deps.storage.set(&full_key, &(0 as u32).to_be_bytes());
Metadata
Metadata
Assignees
Labels
No labels