|
|
@ -463,12 +463,12 @@ class Blockchain { |
|
|
|
try { error = 'error: ' + JSON.stringify(error) } catch (e) {} |
|
|
|
try { error = 'error: ' + JSON.stringify(error) } catch (e) {} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
next(error, result) |
|
|
|
next(error, result, tx) |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
async (error, txResult) => { |
|
|
|
async (error, txResult, tx) => { |
|
|
|
if (error) { |
|
|
|
if (error) { |
|
|
|
return cb(error) |
|
|
|
return cb(error) |
|
|
|
} |
|
|
|
} |
|
|
@ -488,6 +488,10 @@ class Blockchain { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!isVM && tx && tx.useCall) { |
|
|
|
|
|
|
|
returnValue = toBuffer(txResult.result) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let address = null |
|
|
|
let address = null |
|
|
|
if (txResult && txResult.receipt) { |
|
|
|
if (txResult && txResult.receipt) { |
|
|
|
address = txResult.receipt.contractAddress |
|
|
|
address = txResult.receipt.contractAddress |
|
|
|