Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

NEAR Clear State #1016

Open
doriancrutcher opened this issue Aug 22, 2022 · 0 comments
Open

NEAR Clear State #1016

doriancrutcher opened this issue Aug 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@doriancrutcher
Copy link

Is your feature request related to a problem? Please describe.
There should be a way within NEAR-CLI that allows a user to clear the state of their contract using Illia's deletion tool.

Describe the solution you'd like
The approach I took was that you can list all the keys in the state send that to Illia's contract and it will delete the state, but this requires the use of the view-state command but that command sets a limitation on how much of the state you can view, past a certain size you can't use view-state

https://github.com/doriancrutcher/near-clear-state

Describe alternatives you've considered
https://github.com/doriancrutcher/near-clear-state
here was my working solution that works for states under a certain size

Additional context
N/A

@doriancrutcher doriancrutcher added the enhancement New feature or request label Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant