dalphanet: Duplicate JSON property `kind` in internal baker operation results
The JSON representation of internal baker operations in block receipts contains a duplicate kind
property. Although this is generally not disallowed by the JSON spec, it might be confusing for certain tools and libraries. Displaying the raw JSON result in Firefox, for example, does not even show the first occurrence of kind
, but only the second.
Example /chains/main/blocks/4062/operations/3/0
:
"internal_operation_results":[{
"kind":"internal_manager_operation",
"kind":"transaction",
"source":"SG1Paq9jVakzJqEiWd7QuDe2xWhdwDbMPivU",
"nonce":0,
"amount":"500000000",
"destination":"tz1UqzzHiEtUx2VoAGY3MPZB5LWctUXvPPaj",
"result":{
"status":"applied",
"balance_updates":[{
"kind":"contract",
"contract":"SG1Paq9jVakzJqEiWd7QuDe2xWhdwDbMPivU",
"change":"-500000000"
},{
"kind":"contract",
"contract":"tz1UqzzHiEtUx2VoAGY3MPZB5LWctUXvPPaj",
"change":"500000000"
}],
"consumed_gas":"10207000"
}
}]