From 04714e135a96df1b1c05e5e17f24377625a80456 Mon Sep 17 00:00:00 2001 From: nprimo Date: Thu, 11 Jan 2024 12:47:49 +0100 Subject: [PATCH] feat(retrieve-block-date): update subject to make it coherent with test --- subjects/blockchain/retrieve-block-date/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subjects/blockchain/retrieve-block-date/README.md b/subjects/blockchain/retrieve-block-date/README.md index b2cf1f65e..6ce597821 100644 --- a/subjects/blockchain/retrieve-block-date/README.md +++ b/subjects/blockchain/retrieve-block-date/README.md @@ -2,12 +2,14 @@ ### Instructions -Using Node.js, create and exports a function `retrieveBlockDate()` that takes as input the height of a block and returns the date of this block. The date must be a `date` javascript object. The script must connect to a local node available on `localhost:18443`, with the user `leeloo` and the password `multipass`. +Using Node.js, create and exports a function `retrieveBlockDate()` that takes as input the height of a block and returns the date of this block. The script must connect to a local node available on `localhost:18443`, with the user `leeloo` and the password +`multipass`. ### Usage ```js -retrieveBlockDate(1881467) // Expected : 2020-11-05T20:18:48.000Z +retrieveBlockDate(1881467) // Expected : 1604607528 + ``` ### Notions