Skip to content

how to verify that the AST is empty? #969

Answered by schungx
BctfN0HUK7Yg asked this question in Q&A
Discussion options

You must be logged in to vote

If you already have an AST then you should have compiled a script already... This is a poor way to detect whether a script is there because some scripts compile down to an empty AST.

You can try using Option<AST> if you need to be sure.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@schungx
Comment options

Answer selected by BctfN0HUK7Yg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants