Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

ImportError: cannot import name 'GetTimestamp' #71

Open
hi0001234d opened this issue May 4, 2018 · 2 comments
Open

ImportError: cannot import name 'GetTimestamp' #71

hi0001234d opened this issue May 4, 2018 · 2 comments

Comments

@hi0001234d
Copy link

I'm getting this error

from boa.interop.Neo.Blockchain import GetHeight, GetHeader, GetTimestamp
ImportError: cannot import name 'GetTimestamp'

It seems to be a issue related to this one #35

@hi0001234d
Copy link
Author

Let me know if I can import GetTimestamp from other module

@jhwinter
Copy link
Contributor

http://docs.neo.org/en-us/sc/reference/api/neo.html
You could either access the Timestamp property through block.Timestamp like they did here: https://github.com/CityOfZion/neo-boa/blob/master/boa_test/example/blockchain/BlockTest.py#L17
or
you could do from boa.interop.Neo.Header import GetTimestamp

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

No branches or pull requests

2 participants