Commit 838c0064 authored by yann300's avatar yann300

minor improvement

parent 247b20e4
...@@ -3,9 +3,8 @@ var ethers = require('ethers') ...@@ -3,9 +3,8 @@ var ethers = require('ethers')
module.exports = { module.exports = {
makeFullTupleTypeDefinition: function (typeDef) { makeFullTupleTypeDefinition: function (typeDef) {
var innerTypes = []
if (typeDef && typeDef.type === 'tuple' && typeDef.components) { 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 'tuple(' + innerTypes.join(',') + ')'
} }
return typeDef.type return typeDef.type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment