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
this is a common problem for devs using our SDK. Partners are not used to developing cross chain and a simple error message to show this would save a lot of dev time.
Add a function to the SDK which checks if a signer is on the correct chain for a route, returning (isCorrectChainId: Boolean, message String)
constsignerChainId=parseInt(awaitprovider.send("eth_chainId",[]),16).toString();if(signerChainId!==route.params.fromChain){// throw error "signer is on the wrong chain ID (${signerChainId}). Please use a signer on chain ID ${route.params.fromChain.chainId}"}
Acceptance Criteria
isCorrectChainId is available on the SDK
The text was updated successfully, but these errors were encountered:
this is a common problem for devs using our SDK. Partners are not used to developing cross chain and a simple error message to show this would save a lot of dev time.
Add a function to the SDK which checks if a signer is on the correct chain for a route, returning (isCorrectChainId: Boolean, message String)
constsignerChainId=parseInt(awaitprovider.send("eth_chainId",[]),16).toString();if(signerChainId!==route.params.fromChain){// throw error "signer is on the wrong chain ID (${signerChainId}). Please use a signer on chain ID ${route.params.fromChain.chainId}"}
Description / Steps to reproduce
this is a common problem for devs using our SDK. Partners are not used to developing cross chain and a simple error message to show this would save a lot of dev time.
Add a function to the SDK which checks if a signer is on the correct chain for a route, returning
(isCorrectChainId: Boolean, message String)
Acceptance Criteria
The text was updated successfully, but these errors were encountered: