simulator type mismatch fix

pull/12/head
aniket-engg 4 years ago
parent 078a144f52
commit 162fde177f
  1. 2
      libs/remix-analyzer/package.json
  2. 2
      libs/remix-debug/package.json
  3. 2
      libs/remix-simulator/package.json
  4. 4
      libs/remix-simulator/src/provider.js
  5. 2
      libs/remix-tests/src/run.ts
  6. 2
      libs/remix-tests/src/runTestSources.ts

@ -1,5 +1,5 @@
{ {
"name": "remix-analyzer", "name": "@remix-project/remix-analyzer",
"version": "0.5.3", "version": "0.5.3",
"description": "Tool to perform static analysis on Solidity smart contracts", "description": "Tool to perform static analysis on Solidity smart contracts",
"main": "./dist/index.js", "main": "./dist/index.js",

@ -1,5 +1,5 @@
{ {
"name": "remix-debug", "name": "@remix-project/remix-debug",
"version": "0.4.5", "version": "0.4.5",
"description": "Tool to debug Ethereum transactions", "description": "Tool to debug Ethereum transactions",
"contributors": [ "contributors": [

@ -1,5 +1,5 @@
{ {
"name": "remix-simulator", "name": "@remix-project/remix-simulator",
"version": "0.1.9-beta.6", "version": "0.1.9-beta.6",
"description": "Ethereum IDE and tools for the web", "description": "Ethereum IDE and tools for the web",
"contributors": [ "contributors": [

@ -14,8 +14,8 @@ const Transactions = require('./methods/transactions.js')
const generateBlock = require('./genesis.js') const generateBlock = require('./genesis.js')
class Provider { class Provider {
constructor(options) { constructor(options = {}) {
this.options = options || {} this.options = options
// TODO: init executionContext here // TODO: init executionContext here
this.executionContext = executionContext this.executionContext = executionContext
this.Accounts = new Accounts(this.executionContext) this.Accounts = new Accounts(this.executionContext)

@ -48,7 +48,7 @@ commander
log.info('verbosity level set to ' + commander.verbose.blue) log.info('verbosity level set to ' + commander.verbose.blue)
} }
const web3 = new Web3() const web3 = new Web3()
const provider = new Provider() const provider: any = new Provider()
await provider.init() await provider.init()
web3.setProvider(provider) web3.setProvider(provider)

@ -12,7 +12,7 @@ import { FinalResult, SrcIfc, compilationInterface, ASTInterface, Options,
const createWeb3Provider = async function () { const createWeb3Provider = async function () {
const web3 = new Web3() const web3 = new Web3()
const provider = new Provider() const provider: any = new Provider()
await provider.init() await provider.init()
web3.setProvider(provider) web3.setProvider(provider)
return web3 return web3

Loading…
Cancel
Save