From 162fde177f501334ec5b22c0dc36112f06ee35c0 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 14 Jul 2020 12:19:23 +0530 Subject: [PATCH] simulator type mismatch fix --- libs/remix-analyzer/package.json | 2 +- libs/remix-debug/package.json | 2 +- libs/remix-simulator/package.json | 2 +- libs/remix-simulator/src/provider.js | 4 ++-- libs/remix-tests/src/run.ts | 2 +- libs/remix-tests/src/runTestSources.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/remix-analyzer/package.json b/libs/remix-analyzer/package.json index 3f412b202c..02dd1bf5e6 100644 --- a/libs/remix-analyzer/package.json +++ b/libs/remix-analyzer/package.json @@ -1,5 +1,5 @@ { - "name": "remix-analyzer", + "name": "@remix-project/remix-analyzer", "version": "0.5.3", "description": "Tool to perform static analysis on Solidity smart contracts", "main": "./dist/index.js", diff --git a/libs/remix-debug/package.json b/libs/remix-debug/package.json index dff91a3d7c..ff76c16277 100644 --- a/libs/remix-debug/package.json +++ b/libs/remix-debug/package.json @@ -1,5 +1,5 @@ { - "name": "remix-debug", + "name": "@remix-project/remix-debug", "version": "0.4.5", "description": "Tool to debug Ethereum transactions", "contributors": [ diff --git a/libs/remix-simulator/package.json b/libs/remix-simulator/package.json index 623877abf1..ede85cb37e 100644 --- a/libs/remix-simulator/package.json +++ b/libs/remix-simulator/package.json @@ -1,5 +1,5 @@ { - "name": "remix-simulator", + "name": "@remix-project/remix-simulator", "version": "0.1.9-beta.6", "description": "Ethereum IDE and tools for the web", "contributors": [ diff --git a/libs/remix-simulator/src/provider.js b/libs/remix-simulator/src/provider.js index 04ae32aede..0540cebc62 100644 --- a/libs/remix-simulator/src/provider.js +++ b/libs/remix-simulator/src/provider.js @@ -14,8 +14,8 @@ const Transactions = require('./methods/transactions.js') const generateBlock = require('./genesis.js') class Provider { - constructor(options) { - this.options = options || {} + constructor(options = {}) { + this.options = options // TODO: init executionContext here this.executionContext = executionContext this.Accounts = new Accounts(this.executionContext) diff --git a/libs/remix-tests/src/run.ts b/libs/remix-tests/src/run.ts index 25782eb3a9..7422ee2a43 100644 --- a/libs/remix-tests/src/run.ts +++ b/libs/remix-tests/src/run.ts @@ -48,7 +48,7 @@ commander log.info('verbosity level set to ' + commander.verbose.blue) } const web3 = new Web3() - const provider = new Provider() + const provider: any = new Provider() await provider.init() web3.setProvider(provider) diff --git a/libs/remix-tests/src/runTestSources.ts b/libs/remix-tests/src/runTestSources.ts index 800571064a..88d0f4b27a 100644 --- a/libs/remix-tests/src/runTestSources.ts +++ b/libs/remix-tests/src/runTestSources.ts @@ -12,7 +12,7 @@ import { FinalResult, SrcIfc, compilationInterface, ASTInterface, Options, const createWeb3Provider = async function () { const web3 = new Web3() - const provider = new Provider() + const provider: any = new Provider() await provider.init() web3.setProvider(provider) return web3