Refactor and remove moment.js usages

This commit is contained in:
Jakub Wojciechowski
2017-08-14 00:27:09 +02:00
parent 99e0f5b5cb
commit e86ac90853
8 changed files with 9 additions and 11 deletions

View File

@ -1,6 +1,4 @@
import moment from 'moment'
// Returns a moment.js instance representing the time of the last mined block
// Returns the time of the last mined block in seconds
export default function latestTime() {
return moment.unix(web3.eth.getBlock('latest').timestamp)
return web3.eth.getBlock('latest').timestamp;
}