Refactor and remove moment.js usages
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user