Replies: 1 comment
-
To access Snap storage from a cron job, you need to use the Example code for the flag is here: https://github.com/MetaMask/snaps/blob/main/packages/examples/packages/manage-state/src/index.ts#L37 Also, I am assuming you have the cron job endowment in your permissions? You have to specify the job (a function name that will be called) and you have to provide the timing as a string. |
Beta Was this translation helpful? Give feedback.
-
I have code like this called from a snap cronjob:
I have a console log before and after the call and the log before the call prints. The call after does not. It is like the code is hanging?
Are we allowed to access snap storage from within a snap cronjob?
In the manifest I have this permission:
"snap_manageState": {},
Beta Was this translation helpful? Give feedback.
All reactions