archethic-node icon indicating copy to clipboard operation
archethic-node copied to clipboard

Smart Contracts: validate_recipients should return a more precise error

Open bchamagne opened this issue 1 year ago • 2 comments

We actually return :invalid_recipients_execution when the validate_recipients fails. This is not practical because there can be many reasons behind that:

  • transaction's condition does not pass
  • contract inherit's condition does not pass
  • contract has no funds
  • contract fails
  • contract produced an invalid transaction (size) ...

We should return more precise errors.

bchamagne avatar Jun 06 '23 08:06 bchamagne

Related to #965

samuelmanzanera avatar Jun 06 '23 10:06 samuelmanzanera

Epic: #257

samuelmanzanera avatar Jun 06 '23 10:06 samuelmanzanera