Skip to content

Commit

Permalink
adding support for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
guy muroch committed Jul 9, 2023
1 parent c617b59 commit be615b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/server-worker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ app.post('/key-shares/generate', async (req: Request, res: Response) => {
.json({ message: 'Keystore is required' });
}

// The nonce of the owner within the SSV contract (increments after each validator registration), obtained using the ssv-scanner tool
const nonce = Number(req.body['nonce'] || '')
// The nonce of the owner within the SSV contract (increments after each validator registration), obtained using the ssv-scanner tool
const nonce = Number(req.body['nonce']);

if (!nonce) {
if (isNaN(nonce)) {
return res
.status(constants.HTTP_STATUS_BAD_REQUEST)
.json({ message: 'Nonce is required' });
Expand Down

0 comments on commit be615b8

Please sign in to comment.