diff --git a/ui/address/contract/methods/form/ContractMethodResultPublicClient.pw.tsx b/ui/address/contract/methods/form/ContractMethodResultPublicClient.pw.tsx index bfe7f29457..677057b285 100644 --- a/ui/address/contract/methods/form/ContractMethodResultPublicClient.pw.tsx +++ b/ui/address/contract/methods/form/ContractMethodResultPublicClient.pw.tsx @@ -69,6 +69,17 @@ const abiItem: AbiFunction = { name: 'internalProposals', type: 'tuple[]', }, + + // ARRAY OF TUPLES WITHOUT NAMES + { + components: [ + { type: 'address' }, + { type: 'uint256' }, + ], + internalType: 'struct SharingPercentage[]', + name: '_sharingPercentages', + type: 'tuple[]', + }, ], }; @@ -115,6 +126,10 @@ const result = [ }, }, ], + [ + [ '0xfD36176C63dA52E783a347DE3544B0b44C7054a6', 0 ], + [ '0xC9534cB913150aD3e98D792857689B55e2404212', 3500 ], + ], ]; const onSettle = () => {}; diff --git a/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_error-1.png b/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_error-1.png index 4db5bb4c5c..ef87c5ce4e 100644 Binary files a/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_error-1.png and b/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_error-1.png differ diff --git a/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_preview-mode-1.png b/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_preview-mode-1.png index 146393b7ac..47ac68b115 100644 Binary files a/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_preview-mode-1.png and b/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_preview-mode-1.png differ diff --git a/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_result-mode-1.png b/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_result-mode-1.png index a5b87f60ed..3ae81cb0bc 100644 Binary files a/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_result-mode-1.png and b/ui/address/contract/methods/form/__screenshots__/ContractMethodResultPublicClient.pw.tsx_default_result-mode-1.png differ diff --git a/ui/address/contract/methods/form/resultPublicClient/ItemTuple.tsx b/ui/address/contract/methods/form/resultPublicClient/ItemTuple.tsx index 4b5a1f13ee..ff9f4fde64 100644 --- a/ui/address/contract/methods/form/resultPublicClient/ItemTuple.tsx +++ b/ui/address/contract/methods/form/resultPublicClient/ItemTuple.tsx @@ -23,8 +23,20 @@ const ItemTuple = ({ abiParameter, data, mode, level }: Props) => { { '{' }
{ 'components' in abiParameter && abiParameter.components.map((component, index) => { - const dataObj = typeof data === 'object' && data !== null ? data : undefined; - const itemData = dataObj && component.name && component.name in dataObj ? dataObj[component.name as keyof typeof dataObj] : undefined; + const itemData = (() => { + if (typeof data !== 'object' || data === null) { + return; + } + + if (Array.isArray(data)) { + return data[index]; + } + + if (component.name && component.name in data) { + return data[component.name as keyof typeof data]; + } + })(); + return (