diff --git a/src/app/execution/txHelper.js b/src/app/execution/txHelper.js index b00f565537..f11a9247e9 100644 --- a/src/app/execution/txHelper.js +++ b/src/app/execution/txHelper.js @@ -114,15 +114,8 @@ module.exports = { }, inputParametersDeclarationToString: function (abiinputs) { - var inputs = '' - if (abiinputs) { - abiinputs.forEach(function (i, inp) { - if (inputs !== '') { - inputs += ', ' - } - inputs += inp.type + ' ' + inp.name - }) - } - return inputs + var inputs = (abiinputs || []).map((inp) => inp.type + ' ' + inp.name) + return inputs.join(', ') } + }