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

Simplify smart contract inherit constraints #945

Closed
samuelmanzanera opened this issue Mar 16, 2023 · 0 comments · Fixed by #999
Closed

Simplify smart contract inherit constraints #945

samuelmanzanera opened this issue Mar 16, 2023 · 0 comments · Fixed by #999
Assignees
Labels
feature New feature request smart contracts Involve smart contracts
Milestone

Comments

@samuelmanzanera
Copy link
Member

For now, the inherit constraints are required and explicit about the rules to accept a new transaction.
However, this can be annoying and slow down adoption of smart contract on Archethic.

We should propose a way to avoid the need of explicit rules, which are already in the actions block of the smart contract.
This is related to #925 (validation nodes will fetch the previous transaction to get the smart contract code and try to expect the next one to match the incoming transaction).

The inherit conditions could still be used for other purposes, such as origin family constraints, inherit exceptions (authorizations to upgrade code), etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request smart contracts Involve smart contracts
Projects
Status: Done 🍻
Development

Successfully merging a pull request may close this issue.

2 participants