Skip to content

Cell Deps are not displaying in transactions. #1604

@jordanmack

Description

@jordanmack

Cell deps are displaying as empty within transactions.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://explorer.nervos.org/transaction/0x1bb10276783a21252df97ef7a7cdf4753c8ebdf174ef0a644afc462e0c735cae
  2. Expand the Transaction Parameters.

Screenshots
20240123212153

Additional context
Here is the same transaction output from the RPC:

{
	"jsonrpc": "2.0",
	"result": {
		"cycles": "0x47ee54",
		"fee": null,
		"min_replace_fee": null,
		"time_added_to_pool": null,
		"transaction": {
			"cell_deps": [
				{
					"dep_type": "code",
					"out_point": {
						"index": "0x0",
						"tx_hash": "0xd891e0e8c4864c730cc4b96b450ed1bcaf42e74c9eb1a38fb193caaf490f9a3d"
					}
				},
				{
					"dep_type": "code",
					"out_point": {
						"index": "0x0",
						"tx_hash": "0x2e46a10a67987594d4eaee2d5f9ac96ce651f7bfb44e82c286a12a1950ad4f29"
					}
				},
				{
					"dep_type": "code",
					"out_point": {
						"index": "0x0",
						"tx_hash": "0x625696834db4320214a8af09de74fd51fc8a83be69d920243f8ccd219071473b"
					}
				},
				{
					"dep_type": "dep_group",
					"out_point": {
						"index": "0x0",
						"tx_hash": "0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c"
					}
				},
				{
					"dep_type": "code",
					"out_point": {
						"index": "0x0",
						"tx_hash": "0x9f8e73e096f1583696760281004d71dc0cebd3c9aa6fb584949facde6e543e67"
					}
				}
			],
			"hash": "0x1bb10276783a21252df97ef7a7cdf4753c8ebdf174ef0a644afc462e0c735cae",
			"header_deps": [],
			"inputs": [
				{
					"previous_output": {
						"index": "0x0",
						"tx_hash": "0xf7f80bbf7d37ddf0ae927db1f2ebceb6793e0380897fc9011e47bab07cccac93"
					},
					"since": "0x4000000065b09a7b"
				},
				{
					"previous_output": {
						"index": "0x1",
						"tx_hash": "0xf7f80bbf7d37ddf0ae927db1f2ebceb6793e0380897fc9011e47bab07cccac93"
					},
					"since": "0x0"
				},
				{
					"previous_output": {
						"index": "0x2",
						"tx_hash": "0xf7f80bbf7d37ddf0ae927db1f2ebceb6793e0380897fc9011e47bab07cccac93"
					},
					"since": "0x0"
				}
			],
			"outputs": [
				{
					"capacity": "0x7676d7e00",
					"lock": {
						"args": "0x0075c62406c6b180d8ffe96400d7f08e6e89d186dc00",
						"code_hash": "0xa4398768d87bd17aea1361edc3accd6a0117774dc4ebc813bfa173e8ac0d086d",
						"hash_type": "type"
					},
					"type": {
						"args": "0xab21bfe2bf85927bb42faaf3006a355222e24d5ea1d4dec0e62f53a8e0c04690",
						"code_hash": "0xfef1d086d9f74d143c60bf03bd04bab29200dbf484c801c72774f2056d4c6718",
						"hash_type": "type"
					}
				},
				{
					"capacity": "0xdf8475800",
					"lock": {
						"args": "0x1ca35cb5fda4bd542e71d94a6d5f4c0d255d6d6fba73c41cf45d2693e59b307280d6acef972db4688408a5e196f92eb0457ca003d9aa1c45ff05056b429b3539514a110000000000",
						"code_hash": "0xb619184ab9142c51b0ee75f4e24bcec3d077eefe513115bad68836d06738fd2c",
						"hash_type": "type"
					},
					"type": null
				},
				{
					"capacity": "0x40618f4390",
					"lock": {
						"args": "0x75c62406c6b180d8ffe96400d7f08e6e89d186dc",
						"code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
						"hash_type": "type"
					},
					"type": null
				}
			],
			"outputs_data": [
				"0xd6eea74bbbde42287e71e5831f6869d06c3f9711af2f5001546e71f808e69a0dc454a855d8522fdb0bc3c082f233ca92f3f6219fb0546a1c40b06d7076ea809df03200008d6a9418a749432c8252d961f080733bc331f296c46a98f50ff3e87231084de8524a110000000000000000000000000000000000000000000000000000000000000000000000000035400e87794237a3931a1bed5a912b28482571d3eea7ac51e1d9b7f3b116d0a8966edb398d010000b1081100000000000001",
				"0x",
				"0x"
			],
			"version": "0x0",
			"witnesses": [
				"0x2203000010000000690000006900000055000000550000001000000055000000550000004100000090a3b19639d2cf835c0b03df07e39ccb07cb04aa4ea44ac9fb64b5452fde92b9440accb972da9283f5388cf6a4f1bb169bdc40c39f7111ff9a0f701d18e9f8ad01b502000000000000b102000010000000a9020000ad020000990200001c0000006c01000070010000740100007801000095020000500100002c000000340000005400000074000000940000009c000000c0000000e4000000e80000000c010000514a1100000000001c0000000200000014000000b8cde090e6a4741b6450308fad1dc338c53936a0381e99beb8948fd3cec18d36ec571272716c749a55b9df9e093f426ecf6d7d3580d6acef972db4688408a5e196f92eb0457ca003d9aa1c45ff05056b429b3539966edb398d010000c454a855d8522fdb0bc3c082f233ca92f3f6219fb0546a1c40b06d7076ea809df0320000c454a855d8522fdb0bc3c082f233ca92f3f6219fb0546a1c40b06d7076ea809df0320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009951a5eee15b2bc87ddd30aab9db8731fbedb29b511e7f5f9c448e8c257e1f51000000000000000004000000190100004c50381e99beb8948fd3cec18d36ec571272716c749a55b9df9e093f426ecf6d7d354f03509f3f80d0ca6764f7fad069b13a71458b5e15461e2441fd17bafd056cca343ed64f015034d2eb954e474ead35bca0482366929b13d7730d5313160f1338b16ee78f31d34f02509af57841ad8e6f5f240ad0a5fd236516c8ad961cc54e075de649bb936eca5e284f0150aaa3def34fa8438e97d50787bb162cee3dea1c72d4e6c03e4e3f25bbe49e29084f0250b846a8259176332157d53eaaece62e998f29d786cc9d79b53f3819a0830735764f01505ff991cf7c2c07a4af3e75d97354822410e8512d37d816583fe6f4c35fa150984f0350051e4c3bfecbdccaeac4ea43f5d488a33b8104bfd527b4e380adec0efebecc0d4feb040000000000000000000000",
				"0x10000000100000001000000010000000",
				"0x55000000100000005500000055000000410000003e514f90d52a3a07455c972db66b1941ea5211dfc37055cf5156a7b11199bfa025ea845569afba851a9696bb072f1c5cafd82f4d8b6c0d968b05c92bddc38bd000"
			]
		},
		"tx_status": {
			"block_hash": "0x30d530075b0d03767607d82b28e6417de53094719721f7c7a7861364ec0b99e8",
			"reason": null,
			"status": "committed"
		}
	},
	"id": 42
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions