You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using @eth-optimism/sdk to bridge ETH between Sepolia & Base Sepolia, deposit & withdrawal initiation has gone through successfully and I've been able to fetch the transaction history (deposits and withrawals) so I'm pretty sure the messenger config has been done correctly.
Here's a snippet of messenger
constmessenger=useMemo(()=>{if(!signer||!address)return;constl1=import.meta.env.VITE_APP_MODE=="production" ? mainnet : sepolia;constl2=import.meta.env.VITE_APP_MODE=="production" ? base : baseSepolia;constl1Provider=newethers.providers.JsonRpcProvider(l1.rpcUrls.default.http[0],// Using custom RPC instead of default for testing).getSigner(address);constl2Provider=newethers.providers.JsonRpcProvider(l2.rpcUrls.default.http[0],// Using custom RPC instead of default for testing).getSigner(address);returnnewOP.CrossChainMessenger({l1ChainId: l1.id,l2ChainId: l2.id,l1SignerOrProvider: chainId==l1.id ? signer : l1Provider,l2SignerOrProvider: chainId==l2.id ? signer : l2Provider,});},[address,signer,chainId]);
Here's a snippet of the status query (which works for deposits):
Bug Description
Using
@eth-optimism/sdk
to bridge ETH between Sepolia & Base Sepolia, deposit & withdrawal initiation has gone through successfully and I've been able to fetch the transaction history (deposits and withrawals) so I'm pretty sure themessenger
config has been done correctly.Here's a snippet of
messenger
Here's a snippet of the status query (which works for deposits):
Here's the error:
Here's the network log:
Steps to Reproduce
Code snippets have been provided above, running it in a React Vite App
Expected behavior
Expect to receive the status of the withdrawal of type
MessageStatus
Environment Information:
Relevant dependencies:
The text was updated successfully, but these errors were encountered: