fix missing context in accounts methods

pull/7/head
Iuri Matias 5 years ago
parent 14f3c20278
commit dd8577061f
  1. 2
      remix-lib/src/execution/txRunner.js
  2. 2
      remix-simulator/src/provider.js

@ -147,7 +147,7 @@ class TxRunner {
}
runBlockInVm (tx, block, callback) {
this.executionContext.vm().runBlock({ block: block, generate: true, skipBlockValidation: true, skipBalance: false }).then(function (results) {
this.executionContext.vm().runBlock({ block: block, generate: true, skipBlockValidation: true, skipBalance: false }).then((results) => {
let result = results.results[0]
if (result) {
const status = result.execResult.exceptionError ? 0 : 1

@ -17,7 +17,7 @@ var Provider = function (options) {
this.options = options || {}
// TODO: init executionContext here
this.executionContext = executionContext
this.Accounts = new Accounts()
this.Accounts = new Accounts(this.executionContext)
this.Transactions = new Transactions(this.executionContext)
this.methods = {}

Loading…
Cancel
Save