fix: constructor options config

This commit is contained in:
Nik Dement'ev 2020-11-18 10:40:27 +03:00
parent fa62ce3eb5
commit 0ab416ea58
No known key found for this signature in database
GPG Key ID: 769B05D57CF16FE2
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ export default (ctx, inject) => {
this.version = 'new' this.version = 'new'
this.config = options.config this.config = options.config
this.web3 = new Web3(new Web3.providers.HttpProvider(options.rpcUrl)) this.web3 = new Web3(new Web3.providers.HttpProvider(options.config.rpcUrl))
} }
async initProvider(provider) { async initProvider(provider) {

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxtjs/provider", "name": "@nuxtjs/provider",
"version": "0.0.7", "version": "0.0.8",
"description": "Provider integration with Nuxt.js", "description": "Provider integration with Nuxt.js",
"repository": "provider-module", "repository": "provider-module",
"license": "MIT", "license": "MIT",