diff --git a/remix-lib/src/execution/txHelper.js b/remix-lib/src/execution/txHelper.js index 5a93f66c9b..938ca2413c 100644 --- a/remix-lib/src/execution/txHelper.js +++ b/remix-lib/src/execution/txHelper.js @@ -3,9 +3,8 @@ var ethers = require('ethers') module.exports = { makeFullTupleTypeDefinition: function (typeDef) { - var innerTypes = [] if (typeDef && typeDef.type === 'tuple' && typeDef.components) { - typeDef.components.map((innerType) => innerTypes.push(innerType.type)) + var innerTypes = typeDef.components.map((innerType) => innerType.type) return 'tuple(' + innerTypes.join(',') + ')' } return typeDef.type