[OP Stack Deployment] Withdrawal of ERC20 token from L2 #754
Replies: 3 comments 7 replies
-
does your testnet chain support fault-poof, which step this error occured? you can step by step implement to debug steps in Node.js REPL |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I shared a process of using viem: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Did you check the documentation?
Did you check for duplicate questions?
Issue Description
Hey! I am currently having some issues withdrawing an ERC20 token from L2 -> L1, where L2 is a local chain that I just spinned up using op-stack.
I was able to deploy the correspondant L2 ERC20 Token based on my L1 ERC20 Token using the OptimismMintableERC20Factory as per instructions mention in the docs.
Also was able to do a deposit of that same L1 ERC20 token using the L1StandardBridge currently deployed on sepolia.
But everytime I do try an withdraw from L2 (following the docs) I am getting:
withdrawal index 0 out of bounds. There are 0 withdrawals
Is this expected?
Below you can check more details about the contract details feeded into the CrossChainMessenger constructor,
I do know that @eth-optimism/sdk has been deprecated but viem (op-stack - https://github.com/wevm/viem/tree/main/src/op-stack) doesn't have yet support for bridging ERC20 as far as I am aware, right?
Any clues on how to proceed? Thank you!
Logs
No response
Additional Information
No response
Feedback
No response
Beta Was this translation helpful? Give feedback.
All reactions