Skip to content

[TUTORIAL] How to Update a Fee Vault #1671

@ZakAyesh

Description

@ZakAyesh

Tutorial title

How to Update a Fee Vault

Tutorial description

This tutorial will go over how to update a fee vault to have a new recipient and withdrawal network.

Tutorial tags

predeploys, smart contracts

Skill level

Intermediate

Hosted on Optimism.io or hosted elsewhere?

Hosted on optimism.io

For tutorials to be hosted on Optimism.io: Tutorial Content

No response

For tutorials hosted elsewhere: URL to tutorial

No response

Additional context

The general steps are as follows:

  1. Deploy a new fee vault onto the chain (such as the Sequencer Fee Vault). Set the new recipient and withdrawal network in the constructor.
  2. Call the upgrade function on ProxyAdmin.sol with the proxy address (0x4200000000000000000000000000000000000011 for the Sequencer Fee Vault as an example) and the new implementation address as arguments. This needs to be done as a deposit transaction to do step 2, because the owner of the proxy is the L2 ProxyAdmin owner, which is the aliased L1 ProxyAdmin owner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    community-requestdocs updates requested by community or OP collectivedocumentationImprovements or additions to documentationtutorialnew tutorial request or revision to existing tutorial

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions