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
I'm using web3 onboard react in my app. If you configure a chain in web3onboard init and that chain is not in your wallet and you call web3OnBoard.setChain method then web3onboard crashes with the following error message:
state is not defined
ReferenceError: state is not defined
Expected Behavior
Two options:
(Preferred) Add the missing chain in the wallet automatically
Return a specific response from setChain to indicate that the target chain is not in the wallet
Try changing chains from web3onboard -> everything is working fine, metamask pops up the confirmation for chain change
Remove Binance testnet chain from metamask
Try changing chains from web3onboard again -> state is not defined error message
What package is effected by this issue?
@web3-onboard/react
Is this a build or a runtime issue?
Runtime
Package Version
2.8.13
Node Version
No response
What browsers are you seeing the problem on?
Chrome
Relevant log output
Uncaught (in promise) ReferenceError: state is not defined
at instance$3 (index-4c4d8815.js:8546:1)
at init$1 (index-4c4d8815.js:1843:1)
at new SwitchChain (index-4c4d8815.js:8554:1)
at create_if_block_18 (index-4c4d8815.js:8903:1)
at Object.p (index-4c4d8815.js:10414:1)
at update (index-4c4d8815.js:1293:1)
at flush (index-4c4d8815.js:1253:1)
Anything else?
No response
Sanity Check
If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.
The text was updated successfully, but these errors were encountered:
Current Behavior
I'm using web3 onboard react in my app. If you configure a chain in web3onboard init and that chain is not in your wallet and you call web3OnBoard.setChain method then web3onboard crashes with the following error message:
state is not defined
ReferenceError: state is not defined
Expected Behavior
Two options:
Steps To Reproduce
{
"id": "0x61",
"token": "Binance Chain Native Token",
"label": "Binance Smart Chain Testnet",
"rpcUrl": "https://data-seed-prebsc-1-s1.binance.org:8545",
"icon": "/img/cryptologo/binance.svg",
"color": "#FFFFFF"
}
{
"id": "0x13881",
"token": "MATIC",
"label": "Mumbai (Matic Testnet)",
"rpcUrl": "https://rpc-mumbai.maticvigil.com",
"icon": "/img/cryptologo/polygon.svg",
"color": "#FFFFFF"
}
What package is effected by this issue?
@web3-onboard/react
Is this a build or a runtime issue?
Runtime
Package Version
2.8.13
Node Version
No response
What browsers are you seeing the problem on?
Chrome
Relevant log output
Anything else?
No response
Sanity Check
The text was updated successfully, but these errors were encountered: