Skip to content

Handle malformed json files in nonce-manager #2

@orbitlens

Description

@orbitlens

Need to properly handle situations when the .nonce.json file is malformed (can happen in the process).

const nonces = fs.existsSync(nonceFile) ? JSON.parse(fs.readFileSync(nonceFile).toString().trim()) : {}

Metadata

Metadata

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions