Commit 162fde17 authored by aniket-engg's avatar aniket-engg

simulator type mismatch fix

parent 078a144f
{ {
"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",
......
{ {
"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": [
......
{ {
"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') ...@@ -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 ...@@ -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, ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment