Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Instadapp/vue-web3
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Oct 17, 2022
2 parents b4eed7b + 58613ea commit 1fd4eeb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,28 @@ yarn add @instadapp/vue-web3-nuxt -D
```

```ts
// nuxt.config.ts
export default defineNuxtConfig({
modules: [
'@instadapp/vue-web3-nuxt'
],
web3 :{
autoImport: false, // default `true`
}
})
```
If you disabled `@instadapp/vue-web3-nuxt` auto import:
```ts
//composables/useWeb3.ts
import Web3 from "web3";
// import { Web3Provider } from "@ethersproject/providers";
import { useWeb3 as useWeb3Generic } from "@instadapp/vue-web3";

const useWeb3 = () => useWeb3Generic<Web3>();
// const useWeb3 = () => useWeb3Generic<Web3Provider>();

export { useWeb3 };
```

<br />
---
Expand Down

0 comments on commit 1fd4eeb

Please sign in to comment.