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
8e64173c
Commit
8e64173c
authored
Mar 21, 2023
by
Ori Pomerantz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(docs/op-stack): Cosmetic updates
parent
37de9e5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
predeploys.md
docs/op-stack/src/docs/build/tutorials/predeploys.md
+5
-5
No files found.
docs/op-stack/src/docs/build/tutorials/predeploys.md
View file @
8e64173c
...
...
@@ -57,20 +57,20 @@ We do this using the [Foundry](https://book.getfoundry.sh/) command `cast`.
1.
Change the implementation to the zero address
```
sh
cast send
--private-key
$PRIVKEY
$PROXY_ADMIN
"upgrade(address,address)"
$
PROXY
$ZERO_ADDR
cast send
--private-key
$PRIVKEY
$PROXY_ADMIN
"upgrade(address,address)"
$
L1BLOCKNUM
$ZERO_ADDR
```
1.
See that the implementation is address zero, and that calling it fails.
```
sh
cast call
$
PROXY
"implementation()"
cast call
$
PROXY
'number()'
cast call
$
L1BLOCKNUM
"implementation()"
cast call
$
L1BLOCKNUM
'number()'
```
1.
Fix the predeploy by returning it to the previous implementation, and verify it works.
```
sh
cast send
--private-key
$PRIVKEY
$PROXY_ADMIN
"upgrade(address,address)"
$
PROXY
$L1BLOCKNUM_IMPLEMENTATION
cast call
$
PROXY
'number()'
| cast
--to-dec
cast send
--private-key
$PRIVKEY
$PROXY_ADMIN
"upgrade(address,address)"
$
L1BLOCKNUM
$L1BLOCKNUM_IMPLEMENTATION
cast call
$
L1BLOCKNUM
'number()'
| cast
--to-dec
```
\ No newline at end of file
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