Skip to content

Commit 1bafd34

Browse files
committed
Update switch-chain.mdx
1 parent 0f1c77a commit 1bafd34

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

embedded-wallets/sdk/js/usage/switch-chain.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ async switchChain(params: { chainId: string }): Promise<void> {
4949
## Example
5050

5151
```javascript title="switchChain.js"
52-
function getEthereumProvider() {
53-
return web3auth.connection?.ethereumProvider ?? null
54-
}
55-
5652
async function onConnected() {
5753
const chains = web3auth.coreOptions.chains ?? []
5854
const chainId = web3auth.currentChainId

0 commit comments

Comments
 (0)