Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block.timestamp is always equal to 0 #9

Open
7flash opened this issue Nov 19, 2018 · 2 comments
Open

block.timestamp is always equal to 0 #9

7flash opened this issue Nov 19, 2018 · 2 comments

Comments

@7flash
Copy link
Contributor

7flash commented Nov 19, 2018

const latestTime = () => {
  return web3.eth.getBlock('latest').then((block) => block.timestamp);
}

always returns 0

@7flash
Copy link
Contributor Author

7flash commented Nov 27, 2018

Any updates?

@nourharidy
Copy link
Member

I'll review this and the rest of your issues tomorrow.
My first guess is that this is a Ganache issue not a Parasol issue. Meaning that if you use a different (real) network, it should work fine. I'll test that tomorrow and will also look into workarounds if it is indeed Ganache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants