UNPKG

@0xfutbol/id

Version:

React component library with shared providers for 0xFutbol ID

12 lines (11 loc) 723 B
'use strict';var index=require('./index-DwkZmKdT.js');require('react'),require('react/jsx-runtime'),require('@0xfutbol/id-sign'),require('react-use'),require('@0xfutbol/constants'),require('thirdweb'),require('@matchain/matchid-sdk-react'),require('@tanstack/react-query'),require('@matchain/matchid-sdk-react/index.css'),require('react-dom');/** * @internal */ async function handleSwitchChain(options) { const { wallet, params } = options; if (wallet.getChain()?.id === index.b2(params[0].chainId)) { return "0x1"; } await wallet.switchChain(index.cA(index.b2(params[0].chainId))); return "0x1"; }exports.handleSwitchChain=handleSwitchChain;//# sourceMappingURL=switch-chain-BT5JMZnf.js.map