Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for tuple type for inputs and outputs #6

Merged
merged 1 commit into from
Aug 14, 2018

Conversation

alexgaribay
Copy link
Contributor

Adds support for the tuple type defined in the ABI for inputs and outputs.

For example, here's an ABI using the tuple type:

[
  {
    "name": "foo",
    "type": "function",
    "outputs: [
      {
        "name": "",
        "type": "tuple",
        "components": [
          {
            "name": "",
            "type": "uint256"
          },
          {
            "name": "",
            "type": "uint256"
          }
        ]
      },
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "inputs": []
  }
]

The output type for this function would be {:tuple, [:uint256, :unit256]}.

@ayrat555 ayrat555 merged commit 1b0539c into poanetwork:master Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants