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

基于角色的权限控制中,如何实现运维账号为合约添加业务账号,从而实现业务账号有调用合约读、写权限? #1687

Open
sunyunsheng opened this issue May 11, 2023 · 2 comments
Assignees
Labels

Comments

@sunyunsheng
Copy link
Contributor

目前遇到的问题是链上分配了 管理委员、运维账号, 但调用合约的写函数时,必须得是先添加为运维账号后调用才能成功, 基于角色的权限控制文档里有些“运维账号可以为某个合约添加业务账号” 一是没找到文档中如何为合约添加业务账号,二是webbase管理平台里 也没看到有为合约添加业务账号的地方呢?

@bxq2011hust
Copy link
Member

可以参考console的* grantContractWritePermission Grant the account the contract write permission.这个命令
https://fisco-bcos-documentation.readthedocs.io/zh_CN/latest/docs/console/console_of_java_sdk.html#grantcontractwritepermission

@sunyunsheng
Copy link
Contributor Author

可以参考console的* grantContractWritePermission Grant the account the contract write permission.这个命令 https://fisco-bcos-documentation.readthedocs.io/zh_CN/latest/docs/console/console_of_java_sdk.html#grantcontractwritepermission

如果webase里提供这个分配业务账户的合约写权限的话,只能是自己扩展了是吗

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

No branches or pull requests

3 participants