Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

提议: 支持普通帐户升级为合约帐户 #10

Open
secp256 opened this issue Jan 2, 2019 · 1 comment
Open

提议: 支持普通帐户升级为合约帐户 #10

secp256 opened this issue Jan 2, 2019 · 1 comment

Comments

@secp256
Copy link
Contributor

secp256 commented Jan 2, 2019

目前GXChain上每部署一个新的合约,会新建一个帐户,该帐户无公私钥,合约的执行逻辑由代码控制。
智能合约的更新权限,由部署合约的帐户控制,也即合约帐户的registrar。

GXChain支持智能合约更新后,虽然智能合约帐户没有公私钥,开发者仍然可以通过更新合约的方式,将合约资产全部提现。

提议:

  1. 将智能合约的部署方式 ,由新建一个帐户,改为在已有帐户上更新代码,即将普通帐户升级为合约帐户。
  2. 活跃权限才以更新帐户代码。
@kilmas
Copy link

kilmas commented Jan 3, 2019

这个提议赞成,其实普通账户和合约账户没区别最好。开发者没有必要区分过多无关紧要的区别

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants