@0xfutbol/id
Version:
React component library with shared providers for 0xFutbol ID
12 lines (11 loc) • 700 B
JavaScript
import {b2 as hexToNumber,cA as defineChain}from'./index-BJCJzM2_.js';import'react';import'react/jsx-runtime';import'@0xfutbol/id-sign';import'react-use';import'@0xfutbol/constants';import'thirdweb';import'@matchain/matchid-sdk-react';import'@tanstack/react-query';import'@matchain/matchid-sdk-react/index.css';import'react-dom';/**
* @internal
*/
async function handleSwitchChain(options) {
const { wallet, params } = options;
if (wallet.getChain()?.id === hexToNumber(params[0].chainId)) {
return "0x1";
}
await wallet.switchChain(defineChain(hexToNumber(params[0].chainId)));
return "0x1";
}export{handleSwitchChain};//# sourceMappingURL=switch-chain-CFc8IJLc.js.map