Skip to content

fix: handle tuple array type in MapType definition#41

Merged
paulmillr merged 1 commit into
paulmillr:mainfrom
xMuratY:main
Nov 20, 2025
Merged

fix: handle tuple array type in MapType definition#41
paulmillr merged 1 commit into
paulmillr:mainfrom
xMuratY:main

Conversation

@xMuratY
Copy link
Copy Markdown

@xMuratY xMuratY commented Nov 11, 2025

Simply fixes tuple[] discovery

ABI

{
    "inputs": [
        {
            "name": "calls",
            "type": "tuple[]",
            "internalType": "struct ProxyCall[]",
            "components": [
                {
                    "internalType": "address",
                    "name": "recipient",
                    "type": "address"
                },
                {
                    "internalType": "uint256",
                    "name": "amount",
                    "type": "uint256"
                }
            ],
        }
    ],
    "name": "execForward",
    "outputs": [],
    "stateMutability": "payable",
    "type": "function"
}

Current behavior

ContractMethod.encodeInput: (v: unknown[]) => Uint8Array<ArrayBufferLike>

Expected

ContractMethod.encodeInput: (v: {
    recipient: string;
    amount: bigint;
}[]) => Uint8Array<ArrayBufferLike>

@paulmillr paulmillr merged commit 2836424 into paulmillr:main Nov 20, 2025
6 checks passed
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