Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pick PR #556 #549 commits from main #38

Open
jolestar opened this issue Oct 8, 2022 · 3 comments
Open

Pick PR #556 #549 commits from main #38

jolestar opened this issue Oct 8, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@jolestar
Copy link
Member

jolestar commented Oct 8, 2022

🚀 Feature Request

Motivation

Pick move-language#556 move-language#549

to starcoin-main branch, check if exists a TypeTag nesting deeper than 13 on Barnard and Main.

Additional context

@jolestar jolestar added the enhancement New feature or request label Oct 8, 2022
@jolestar jolestar changed the title [Feature Request] Pick some commits from main Pick PR #556 #549 commits from main Oct 8, 2022
@jiangying000
Copy link
Collaborator

main 上我用 list_resource 和 get_account_state_set 查了几个地址:0x1,0x8355417c88d969f656935244641256ad,0xA550C18 加上普通用户的地址,typetag 嵌套层数最多是 3,超过12层感觉概率很低。

move-language#549 是等合并以后再 pick 吗 ?

@jiangying000
Copy link
Collaborator

三层的 出现在 0x1 的 state.get_account_state_set 接口返回的 type_ 这个字段

	 	"0x00000000000000000000000000000001::Config::ModifyConfigCapabilityHolder<0x00000000000000000000000000000001::Dao::DaoConfig<0x00000000000000000000000000000001::STC::STC>>": {
			"abilities": 12,
			"type_": "0x00000000000000000000000000000001::Config::ModifyConfigCapabilityHolder<0x00000000000000000000000000000001::Dao::DaoConfig<0x00000000000000000000000000000001::STC::STC>>",
			"value": [
				[
					"cap",
					{
						"Struct": {
							"abilities": 7,
							"type_": "0x00000000000000000000000000000001::Option::Option<0x00000000000000000000000000000001::Config::ModifyConfigCapability<0x00000000000000000000000000000001::Dao::DaoConfig<0x00000000000000000000000000000001::STC::STC>>>",
							"value": [
								[
									"vec",
									{
										"Vector": []
									}
								]
							]
						}
					}
				]
			]
		},

"0x00000000000000000000000000000001::ModifyDaoConfigProposal::DaoConfigModifyCapability<0x00000000000000000000000000000001::STC::STC>": {
			"abilities": 8,
			"type_": "0x00000000000000000000000000000001::ModifyDaoConfigProposal::DaoConfigModifyCapability<0x00000000000000000000000000000001::STC::STC>",
			"value": [
				[
					"cap",
					{
						"Struct": {
							"abilities": 4,
							"type_": "0x00000000000000000000000000000001::Config::ModifyConfigCapability<0x00000000000000000000000000000001::Dao::DaoConfig<0x00000000000000000000000000000001::STC::STC>>",
							"value": [
								[
									"account_address",
									{
										"Address": "0x00000000000000000000000000000001"
									}
								],
								[
									"events",
									{
										"Struct": {
											"abilities": 4,
											"type_": "0x00000000000000000000000000000001::Event::EventHandle<0x00000000000000000000000000000001::Config::ConfigChangeEvent<0x00000000000000000000000000000001::Dao::DaoConfig<0x00000000000000000000000000000001::STC::STC>>>",
											"value": [
												[
													"counter",
													{
														"U64": "0"
													}
												],
												[
													"guid",
													{
														"Bytes": "0x140000000000000000000000000000000000000000000001"
													}
												]
											]
										}
									}
								]
							]
						}
					}
				]
			]
		},

@jolestar
Copy link
Member Author

main 上我用 list_resource 和 get_account_state_set 查了几个地址:0x1,0x8355417c88d969f656935244641256ad,0xA550C18 加上普通用户的地址,typetag 嵌套层数最多是 3,超过12层感觉概率很低。

move-language#549 是等合并以后再 pick 吗 ?

等合并,这个可能还要改一下

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants