archethic-foundation / archethic-foundation/archethic-node

Inherit condition verification should use new state

Open
#1,495 0 comments 0 reactions 0 assignees View on GitHub
bug smart contracts
Dominant language
Elixir
Stars
82
Forks
24
PR merge metrics
No merged PRs in 30d

Description

### Describe the problem you discovered

The goal of the inherit conditions is to ensure the output of the contract respect certain rules. The State of the contract could be part of those rules, but currently the state used in inherit condition is the current contract state and not the new state after contract execution

### Describe the solution you'd like

The new state should be used when executing inherit conditions

### Epic

_No response_

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Trace where inherit conditions are executed and compare the contract state available before and after execution; done means the inherit conditions evaluate against the new post-execution state.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.