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

Use Interpreter parsing to check the prior code #785

Closed
samuelmanzanera opened this issue Dec 16, 2022 · 1 comment · Fixed by #803
Closed

Use Interpreter parsing to check the prior code #785

samuelmanzanera opened this issue Dec 16, 2022 · 1 comment · Fixed by #803
Assignees
Labels
enhancements smart contracts Involve smart contracts

Comments

@samuelmanzanera
Copy link
Member

Currently, we are doing a strict comparison between the smart contract to ensure integrity.
However, if the formatting change for example due to white spaces, backspaces.... so the transaction is invalid.
To improve this, we can parse both the contract and check the AST are the same, hence the contract's code will be validated.

@tenmoves
Copy link
Contributor

we can look at how recompile works under the hood to get inspiration.

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

Successfully merging a pull request may close this issue.

2 participants