Skip to content

Commit

Permalink
Merge pull request #141 from starkware-libs/improve_errors
Browse files Browse the repository at this point in the history
add string data to CONTRACT_ERROR (#141)
  • Loading branch information
ArielElp authored Sep 21, 2023
2 parents cf5caa7 + f3aea5c commit 4bb9c31
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3333,7 +3333,19 @@
},
"CONTRACT_ERROR": {
"code": 40,
"message": "Contract error"
"message": "Contract error",
"data": {
"type": "object",
"description": "More data about the execution failure",
"properties": {
"revert_error": {
"title": "revert error",
"description": "a string encoding the execution trace up to the point of failure",
"type": "string"
}
},
"required": "revert_error"
}
}
}
}
Expand Down

0 comments on commit 4bb9c31

Please sign in to comment.