Merge pull request #901 from ethereum/yann300-patch-16

Don't use executionContext in library
pull/7/head
yann300 6 years ago committed by GitHub
commit 7c77d5dac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      remix-lib/src/execution/txFormat.js

@ -1,7 +1,6 @@
'use strict'
var ethers = require('ethers')
var helper = require('./txHelper')
var executionContext = require('./execution-context')
var asyncJS = require('async')
var solcLinker = require('solc/linker')
var ethJSUtil = require('ethereumjs-util')
@ -320,7 +319,7 @@ module.exports = {
if (err) {
return callback(err)
}
var address = executionContext.isVM() ? txResult.result.createdAddress : txResult.result.contractAddress
var address = txResult.result.createdAddress || txResult.result.contractAddress
library.address = address
callback(err, address)
})

Loading…
Cancel
Save