diff --git a/scripts/get-flattened-publication.sh b/scripts/get-flattened-publication.sh index 543b3cdeecb0..2c93016eccd9 100755 --- a/scripts/get-flattened-publication.sh +++ b/scripts/get-flattened-publication.sh @@ -127,7 +127,7 @@ printf '%s' "$unwrapped_value" | jq -c --arg responseHeightJson "$response_heigh # Add block height information. (.dataBlockHeight |= $dataHeight) | - (.blockHeight |= ($responseHeightJson | fromjson)) + (.responseBlockHeight |= ($responseHeightJson | fromjson)) ' || { status=$? printf 'Unable to process response value:\n%s\n' "$unwrapped_value" >&2 diff --git a/scripts/test/test-get-flattened-publication/fixtures/flattened-naked.json b/scripts/test/test-get-flattened-publication/fixtures/flattened-naked.json index 3e85dc109f93..74dc9294d0ac 100644 --- a/scripts/test/test-get-flattened-publication/fixtures/flattened-naked.json +++ b/scripts/test/test-get-flattened-publication/fixtures/flattened-naked.json @@ -1 +1 @@ -{"json-booleans-0":false,"json-booleans-1":true,"json-null":null,"json-strings-0":"","json-numbers-0":0,"non-json-bigint":"0","non-json-slotref-id":"slot-bar","non-json-slotref-allegedName":"Bar","non-json-slotreref-id":"slot-bar","non-json-slotreref-allegedName":"Bar","dataBlockHeight":null,"blockHeight":"42"} +{"json-booleans-0":false,"json-booleans-1":true,"json-null":null,"json-strings-0":"","json-numbers-0":0,"non-json-bigint":"0","non-json-slotref-id":"slot-bar","non-json-slotref-allegedName":"Bar","non-json-slotreref-id":"slot-bar","non-json-slotreref-allegedName":"Bar","dataBlockHeight":null,"responseBlockHeight":"42"} diff --git a/scripts/test/test-get-flattened-publication/fixtures/flattened-streamcell.json b/scripts/test/test-get-flattened-publication/fixtures/flattened-streamcell.json index e6fa82f160f4..1450617ecc1a 100644 --- a/scripts/test/test-get-flattened-publication/fixtures/flattened-streamcell.json +++ b/scripts/test/test-get-flattened-publication/fixtures/flattened-streamcell.json @@ -1,2 +1,2 @@ -{"json-booleans-0":false,"json-booleans-1":true,"json-null":null,"json-strings-0":"","json-numbers-0":0,"non-json-bigint":"0","non-json-slotref-id":"slot-bar","non-json-slotref-allegedName":"Bar","non-json-slotreref-id":"slot-bar","non-json-slotreref-allegedName":"Bar","dataBlockHeight":"41","blockHeight":"42"} -{"json-booleans-0":false,"json-booleans-1":true,"json-null":null,"json-strings-0":"","json-numbers-0":0,"non-json-bigint":"0","non-json-slotref-id":"slot-bar","non-json-slotref-allegedName":"Bar","non-json-slotreref-id":"slot-bar","non-json-slotreref-allegedName":"Bar","dataBlockHeight":"41","blockHeight":"42"} +{"json-booleans-0":false,"json-booleans-1":true,"json-null":null,"json-strings-0":"","json-numbers-0":0,"non-json-bigint":"0","non-json-slotref-id":"slot-bar","non-json-slotref-allegedName":"Bar","non-json-slotreref-id":"slot-bar","non-json-slotreref-allegedName":"Bar","dataBlockHeight":"41","responseBlockHeight":"42"} +{"json-booleans-0":false,"json-booleans-1":true,"json-null":null,"json-strings-0":"","json-numbers-0":0,"non-json-bigint":"0","non-json-slotref-id":"slot-bar","non-json-slotref-allegedName":"Bar","non-json-slotreref-id":"slot-bar","non-json-slotreref-allegedName":"Bar","dataBlockHeight":"41","responseBlockHeight":"42"}