Merge pull request #762 from ethereum/yann300-patch-4

Fix ethereum js return value decoding
pull/7/head
yann300 7 years ago committed by GitHub
commit fa411bb463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      remix-lib/src/web3Provider/web3VmProvider.js

@ -125,8 +125,10 @@ web3VmProvider.prototype.txProcessed = function (self, data) {
var address = util.hexConvert(data.createdAddress) var address = util.hexConvert(data.createdAddress)
self.vmTraces[self.processingHash].return = address self.vmTraces[self.processingHash].return = address
self.txsReceipt[self.processingHash].contractAddress = address self.txsReceipt[self.processingHash].contractAddress = address
} else { } else if (data.vm.return) {
self.vmTraces[self.processingHash].return = util.hexConvert(data.vm.return) self.vmTraces[self.processingHash].return = util.hexConvert(data.vm.return)
} else {
self.vmTraces[self.processingHash].return = '0x'
} }
this.processingIndex = null this.processingIndex = null
this.processingAddress = null this.processingAddress = null

Loading…
Cancel
Save