request: support erc20 gas tokens for OP stack deposits #3333
Unanswered
sambacha
asked this question in
Idea / Feature Request
Replies: 3 comments
-
We will need to add support for it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
go to sleep |
Beta Was this translation helpful? Give feedback.
0 replies
-
Goodnight 😴 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the type of issue?
Documentation is missing
What is the issue?
For
op-stack
the deposit example uses ETH (as it should). However there is no corresponding docs for supporting custom native gas tokens.Here is the spec:
https://github.com/ethereum-optimism/optimism/blob/op-contracts/v2.0.0-beta.3/packages/contracts-bedrock/src/L1/OptimismPortal.sol#L456C1-L493C6
Additionally, if a deposit is made by a contract, its address will be aliased when retrieved using
tx.origin
ormsg.sender
.Where did you find it?
https://viem.sh/op-stack/guides/deposits#3-execute-the-deposit-transaction
Beta Was this translation helpful? Give feedback.
All reactions