Commit 0e37be07 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Do not break if invalid account is selected in VM mode

parent e3742cfe
......@@ -741,6 +741,9 @@ UniversalDApp.prototype.runTx = function (args, cb) {
try {
var address = self.getAddress ? self.getAddress() : Object.keys(self.accounts)[0]
var account = self.accounts[address]
if (!account) {
return cb('Invalid account selected')
}
tx = new EthJSTX({
nonce: new BN(account.nonce++),
gasPrice: new BN(1),
......
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