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 abi.ninja style ablity to handle tuples #30

Open
escottalexander opened this issue Apr 1, 2024 · 0 comments
Open

Add abi.ninja style ablity to handle tuples #30

escottalexander opened this issue Apr 1, 2024 · 0 comments

Comments

@escottalexander
Copy link
Collaborator

Currently when you click "manually add transaction" and the custom tab then you have to input the functions signature
image

Abi.ninja can handle tuples while HWR can not. This issue is for making HWR more robust so that it can handle tuples.
image

For an example load this contract in https;//abi.ninja: 0xC059A531B4234D05E9ef4ac51028F7E6156E2CCe

With this abi:

[
 {
    "inputs": [
      { "internalType": "uint256", "name": "amount", "type": "uint256" },
      {
        "components": [
          { "internalType": "uint256", "name": "rewardId", "type": "uint256" },
          { "internalType": "uint256", "name": "amount", "type": "uint256" },
          { "internalType": "bytes32[]", "name": "proof", "type": "bytes32[]" }
        ],
        "internalType": "struct IMemecoinStaking.Reward[]",
        "name": "rewards",
        "type": "tuple[]"
      }
    ],
    "name": "unstake",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  }
]
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

No branches or pull requests

1 participant