diff --git a/js/src/ui/MethodDecoding/methodDecoding.js b/js/src/ui/MethodDecoding/methodDecoding.js index 693ae60b5..2c4c28e47 100644 --- a/js/src/ui/MethodDecoding/methodDecoding.js +++ b/js/src/ui/MethodDecoding/methodDecoding.js @@ -377,11 +377,15 @@ class MethodDecoding extends Component { } const inputs = methodInputs.map((input, index) => { + const label = input.name + ? `${input.name}: ${input.type}` + : input.type; + return ( { - const type = abi.inputs[index].type; - return { type, value }; + const { name, type } = abi.inputs[index]; + return { name, type, value }; }); }