Function fillEmptyNames

  • Fills tuple component's empty names in an ABI with generated names

    Parameters

    • abi: ABI

      The ABI to process

    Returns ABI

    A new ABI with tuple component names filled

    Input: {
    "type": "function",
    "selector": "0x95d376d7",
    "payable": false,
    "stateMutability": "payable",
    "inputs": [
    {
    "type": "tuple",
    "name": "",
    "components": [
    { "type": "uint32", "name": "" },
    { "type": "bytes", "name": "" },
    { "type": "bytes32", "name": "" },
    { "type": "uint64", "name": "" },
    { "type": "address", "name": "" }
    ]
    },
    { "type": "bytes", "name": "" }
    ],
    "sig": "assignJob((uint32,bytes,bytes32,uint64,address),bytes)",
    "name": "assignJob",
    "constant": false
    }

    Output: {
    "type": "function",
    "selector": "0x95d376d7",
    "payable": false,
    "stateMutability": "payable",
    "inputs": [
    {
    "type": "tuple",
    "name": "",
    "components": [
    { "type": "uint32", "name": "_param0" },
    { "type": "bytes", "name": "_param1" },
    { "type": "bytes32", "name": "_param2" },
    { "type": "uint64", "name": "_param3" },
    { "type": "address", "name": "_param4" }
    ]
    },
    { "type": "bytes", "name": "" }
    ],
    "sig": "assignJob((uint32,bytes,bytes32,uint64,address),bytes)",
    "name": "assignJob",
    "constant": false
    }