mirror of
https://github.com/Instadapp/vue-web3.git
synced 2024-07-29 21:48:25 +00:00
Update README.md
This commit is contained in:
parent
acc6b9ac55
commit
58613ea67a
|
@ -89,9 +89,11 @@ If you disabled `@instadapp/vue-web3-nuxt` auto import:
|
||||||
```ts
|
```ts
|
||||||
//composables/useWeb3.ts
|
//composables/useWeb3.ts
|
||||||
import Web3 from "web3";
|
import Web3 from "web3";
|
||||||
|
// import { Web3Provider } from "@ethersproject/providers";
|
||||||
import { useWeb3 as useWeb3Generic } from "@instadapp/vue-web3";
|
import { useWeb3 as useWeb3Generic } from "@instadapp/vue-web3";
|
||||||
|
|
||||||
const useWeb3 = () => useWeb3Generic<Web3>();
|
const useWeb3 = () => useWeb3Generic<Web3>();
|
||||||
|
// const useWeb3 = () => useWeb3Generic<Web3Provider>();
|
||||||
|
|
||||||
export { useWeb3 };
|
export { useWeb3 };
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user