fix example

This commit is contained in:
Dmitry Vasilev
2023-08-10 12:49:12 +03:00
parent 20c846e0a9
commit e8e54e9d4a

View File

@@ -23,6 +23,6 @@ async function getBlockNumberByTimestamp(timestamp, low = 0, high = latest.numbe
}
}
const timestamp = new Date('2010-08-03').getTime()/1000
const timestamp = new Date('2019-06-01').getTime()/1000
const blockNumber = await getBlockNumberByTimestamp(timestamp)
const block = await provider.getBlock(blockNumber)