archethic-foundation / archethic-foundation/archethic-node

Smart Contracts: when contract does not output a tx (even if it crash), a transaction should still be created

Open
#953 2 comments 0 reactions 0 assignees View on GitHub
good first issue smart contracts
Dominant language
Elixir
Stars
82
Forks
24
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem?

Miners should get fees even if a contract does nothing or crash. This is an anti-spam solution.

### Describe the solution you'd like

ps: we probably need to copy the fields from previous transaction
ps: we probably need to change the `get_calls()` function as well

### Additional context

Epic: #608

Contributor guide

Open the contributing guide

Research direction

Start with epic #608 and trace the transaction path relevant to smart contracts that produce no output or crash. Read the existing get_calls() behavior and determine which fields must be copied from the previous transaction. Done means a transaction is still created in these cases so miners can receive fees.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.