-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathrevert.schema.yaml
More file actions
58 lines (49 loc) · 1.36 KB
/
revert.schema.yaml
File metadata and controls
58 lines (49 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
$schema: "https://json-schema.org/draft/2020-12/schema"
$id: "schema:ethdebug/format/program/context/revert"
title: ethdebug/format/program/context/revert
description: |
Schema for representing function revert context at a specific point in
program execution.
This context captures information about function reverts, including
revert reason data or panic codes.
type: object
properties:
revert:
type: object
properties:
reason:
type: object
title: Revert reason
description: |
Pointer to the revert reason data. This typically contains an
ABI-encoded error message or custom error data.
properties:
pointer:
$ref: "schema:ethdebug/format/pointer"
required:
- pointer
panic:
type: integer
title: Panic code
description: |
Numeric panic code for built-in assertion failures.
Languages may define their own panic code conventions
(e.g., Solidity uses codes like 0x11 for arithmetic overflow).
required:
- revert
additionalProperties: false
examples:
- revert:
reason:
pointer:
location: memory
offset: 0x40
length: 0x60
- revert:
panic: 0x11
- revert:
reason:
pointer:
location: returndata
offset: 0
length: 100