Context
The following functionality is missing from the ERC20 story
Major missing functionality
Minor missing functionality
// example
const l2BridgeAddress = l2MintableToken.l2Bridge()
const l1TokenAddress = l2MintableToken.l1Token()
client.withdrawERC20({
...sameOptionsAsBefore,
address: l2BridgeAddress,
Context
The following functionality is missing from the ERC20 story
Major missing functionality
bridgeERC20methods rather than awithdraw. Withdraw is only for mintable tokens not native tokensMinor missing functionality
Add action for getting token info - It would be nice if viem had a native way of getting stuff like the bridge address and matching token too
No preregensis support - preregenisis are before the version of optimism that was before bedrock. My suggestion is to not support this completely but simply add a single sentence to the docs about this not being supported.