Merge pull request #11591 from ethereum/fix-develop-docs-ci

[DOCS] Change code block into proper JSON
This commit is contained in:
Harikrishnan Mulackal 2021-06-28 18:08:16 +02:00 committed by GitHub
commit f5d659da0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,10 +240,10 @@ value and reference types, types that are encoded packed, and nested types.
.. code:: json .. code:: json
"storageLayout": { {
"storage": [ "storage": [
{ {
"astId": 14, "astId": 15,
"contract": "fileA:A", "contract": "fileA:A",
"label": "x", "label": "x",
"offset": 0, "offset": 0,
@ -251,7 +251,7 @@ value and reference types, types that are encoded packed, and nested types.
"type": "t_uint256" "type": "t_uint256"
}, },
{ {
"astId": 16, "astId": 17,
"contract": "fileA:A", "contract": "fileA:A",
"label": "y", "label": "y",
"offset": 0, "offset": 0,
@ -259,15 +259,15 @@ value and reference types, types that are encoded packed, and nested types.
"type": "t_uint256" "type": "t_uint256"
}, },
{ {
"astId": 18, "astId": 20,
"contract": "fileA:A", "contract": "fileA:A",
"label": "s", "label": "s",
"offset": 0, "offset": 0,
"slot": "2", "slot": "2",
"type": "t_struct(S)12_storage" "type": "t_struct(S)13_storage"
}, },
{ {
"astId": 20, "astId": 22,
"contract": "fileA:A", "contract": "fileA:A",
"label": "addr", "label": "addr",
"offset": 0, "offset": 0,
@ -275,7 +275,7 @@ value and reference types, types that are encoded packed, and nested types.
"type": "t_address" "type": "t_address"
}, },
{ {
"astId": 26, "astId": 28,
"contract": "fileA:A", "contract": "fileA:A",
"label": "map", "label": "map",
"offset": 0, "offset": 0,
@ -283,7 +283,7 @@ value and reference types, types that are encoded packed, and nested types.
"type": "t_mapping(t_uint256,t_mapping(t_address,t_bool))" "type": "t_mapping(t_uint256,t_mapping(t_address,t_bool))"
}, },
{ {
"astId": 29, "astId": 31,
"contract": "fileA:A", "contract": "fileA:A",
"label": "array", "label": "array",
"offset": 0, "offset": 0,
@ -291,7 +291,7 @@ value and reference types, types that are encoded packed, and nested types.
"type": "t_array(t_uint256)dyn_storage" "type": "t_array(t_uint256)dyn_storage"
}, },
{ {
"astId": 31, "astId": 33,
"contract": "fileA:A", "contract": "fileA:A",
"label": "s1", "label": "s1",
"offset": 0, "offset": 0,
@ -299,7 +299,7 @@ value and reference types, types that are encoded packed, and nested types.
"type": "t_string_storage" "type": "t_string_storage"
}, },
{ {
"astId": 33, "astId": 35,
"contract": "fileA:A", "contract": "fileA:A",
"label": "b1", "label": "b1",
"offset": 0, "offset": 0,
@ -354,12 +354,12 @@ value and reference types, types that are encoded packed, and nested types.
"label": "string", "label": "string",
"numberOfBytes": "32" "numberOfBytes": "32"
}, },
"t_struct(S)12_storage": { "t_struct(S)13_storage": {
"encoding": "inplace", "encoding": "inplace",
"label": "struct A.S", "label": "struct A.S",
"members": [ "members": [
{ {
"astId": 2, "astId": 3,
"contract": "fileA:A", "contract": "fileA:A",
"label": "a", "label": "a",
"offset": 0, "offset": 0,
@ -367,7 +367,7 @@ value and reference types, types that are encoded packed, and nested types.
"type": "t_uint128" "type": "t_uint128"
}, },
{ {
"astId": 4, "astId": 5,
"contract": "fileA:A", "contract": "fileA:A",
"label": "b", "label": "b",
"offset": 16, "offset": 16,
@ -375,7 +375,7 @@ value and reference types, types that are encoded packed, and nested types.
"type": "t_uint128" "type": "t_uint128"
}, },
{ {
"astId": 8, "astId": 9,
"contract": "fileA:A", "contract": "fileA:A",
"label": "staticArray", "label": "staticArray",
"offset": 0, "offset": 0,
@ -383,7 +383,7 @@ value and reference types, types that are encoded packed, and nested types.
"type": "t_array(t_uint256)2_storage" "type": "t_array(t_uint256)2_storage"
}, },
{ {
"astId": 11, "astId": 12,
"contract": "fileA:A", "contract": "fileA:A",
"label": "dynArray", "label": "dynArray",
"offset": 0, "offset": 0,