Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
4861e897
Unverified
Commit
4861e897
authored
Sep 01, 2023
by
Adrian Sutton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-challenger: Add section on decoding revert reasons.
parent
c91cdef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
README.md
op-challenger/README.md
+17
-0
No files found.
op-challenger/README.md
View file @
4861e897
...
@@ -28,6 +28,23 @@ This are not intended to be used in production, only to support manual testing a
...
@@ -28,6 +28,23 @@ This are not intended to be used in production, only to support manual testing a
dispute games work. They also serve as examples of how to use
`cast`
to manually interact with the dispute game
dispute games work. They also serve as examples of how to use
`cast`
to manually interact with the dispute game
contracts.
contracts.
### Understanding Revert Reasons
When actions performed by these scripts fails, they typically print a message that includes the
abi encoded revert reason provided by the contract. e.g.
```
Error:
(code: 3, message: execution reverted, data: Some(String("0x67fe1950")))
```
The
`cast 4byte`
command can be used to decode these revert reasons. e.g.
```
shell
$
cast 4byte 0x67fe1950
GameNotInProgress
()
```
### Dependencies
### Dependencies
These scripts assume that the following tools are installed and available on the current
`PATH`
:
These scripts assume that the following tools are installed and available on the current
`PATH`
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment