UNPKG

@safe-global/safe-react-hooks

Version:

A collection of React Hooks that facilitates the interaction of React apps with Safe Smart Accounts

16 lines 462 B
import { custom, http } from 'viem'; import { isString } from './types/guards.js'; /** * Create a SafeConfig object for the given parameters. * @param param Config parameter object * @returns Config object */ export function createConfig({ provider, signer, ...rest }) { return { transport: isString(provider) ? http(provider) : custom(provider), provider, signer, ...rest }; } //# sourceMappingURL=createConfig.js.map