FIX runTx to replayTx & FIX arguments

pull/1/head
serapath 7 years ago committed by yann300
parent 485ee3f379
commit 4cb317fd4b
  1. 2
      src/app/tabs/run-tab.js
  2. 4
      src/recorder.js

@ -287,7 +287,7 @@ function makeRecorder (appAPI, appEvents) {
modalDialogCustom.alert('Invalid JSON, please try again')
}
if (txArray.length) {
txArray.forEach(tx => udapp.runTx(tx, CALLBACK))
txArray.forEach(tx => udapp.replayTx(tx.record, CALLBACK))
}
}, function cancel () { })
}

@ -25,8 +25,8 @@ class Recorder {
if (err) console.error(err)
var timestamp = args[6]
// update transaction which was pending with correct `to` address
var record = self._pendingCreation[timestamp]
delete self._pendingCreation[timestamp]
var record = self.data._pendingCreation[timestamp]
delete self.data._pendingCreation[timestamp]
if (!record) return
var to = args[2]
record.to = self._addressCache[to] || (self._addressCache[to] = `<contract -${++counter}>`)

Loading…
Cancel
Save