minor improvement

pull/3094/head
yann300 7 years ago
parent c228ea5f0b
commit 9a7f207055
  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