minor improvement

pull/7/head
yann300 7 years ago
parent 247b20e451
commit 838c006408
  1. 3
      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

Loading…
Cancel
Save