Skip to content

Commit

Permalink
check return
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Sep 13, 2017
1 parent da69dfd commit 372a70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ module.exports = function (opts, cb) {

function saveCode (cb) {
// store code for a new contract
if (createdAddress && vmResults.return.toString() !== '') {
if (createdAddress && vmResults.return && vmResults.return.toString() !== '') {
stateManager.putContractCode(createdAddress, vmResults.return, cb)
} else {
cb()
Expand Down

0 comments on commit 372a70b

Please sign in to comment.