@web3-onboard/wagmi
Advanced tools
Comparing version 2.0.0-wagmi.1 to 2.0.0-wagmi.2
import type { Config, ConnectReturnType, Connector, CreateConnectorFn } from '@wagmi/core'; | ||
import type { WagmiInitOptions, WagmiModuleAPI } from './types'; | ||
export * from '@wagmi/core'; | ||
export type { Config, ConnectReturnType, Connector, CreateConnectorFn, WagmiInitOptions, WagmiModuleAPI }; | ||
declare function wagmiInit(initOptions: WagmiInitOptions): WagmiModuleAPI; | ||
export default wagmiInit; |
@@ -8,2 +8,3 @@ import { createConfig, createConnector } from '@wagmi/core'; | ||
import { ProviderRpcErrorCode } from '@web3-onboard/common'; | ||
export * from '@wagmi/core'; | ||
const wagmiConnectorFn = {}; | ||
@@ -10,0 +11,0 @@ const transports = {}; |
{ | ||
"name": "@web3-onboard/wagmi", | ||
"version": "2.0.0-wagmi.1", | ||
"version": "2.0.0-wagmi.2", | ||
"description": "Module to configure, connect and return web3-onboard wallets as wagmi wallets and wagmi-config to be used with wagmi-core methods", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -48,5 +48,9 @@ # @web3-onboard/wagmi | ||
const sendTransaction = async provider => { | ||
// current primary wallet - as multiple wallets can connect this value is the currently active | ||
const [currentPrimaryWallet] = onboard.state.get().wallets | ||
const wagmiConfig = onboard.state.get().wagmiConfig | ||
const result = await wagmiSendTransaction(wagmiConfig, { | ||
to: toAddress, | ||
// desired connector to send txn from | ||
account: currentPrimaryWallet.accounts[0], | ||
value: parseEther('0.001') | ||
@@ -53,0 +57,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14579
255
81