-
Notifications
You must be signed in to change notification settings - Fork 62
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
Set custom permission seems not working #140
Comments
I guess that you need to have eosio system contracts installed in order to be able to refer to the Within several days I will workout the issue. |
Sorry, I see that my previous comment is stupid. Nevertheless, I will solve the issue. |
Evidently, EOSIO does not like giving permissins to itself. Change |
Appreciate for the timely feedback. I think giving permission to other account does not solve the problem. It is a common use case on EOS mainnet to add eosio.code permission to some account to grant permission to contract's inner action with following cleos command:
Meanwhile, testaccount1 should also be able to do something (call other contract's action) as a normal account with testaccount1@active permission. I have tried remove the str() without change account (it is not what I want) but no luck it shows the same ERROR. Or is there any way to just add eosio.code permission to an account without manually set all the permissions. Maybe something like
|
Today, we are going to publish a new edition of EOSFactory. There is there a folder eosfactory/pythonmd.sh archive/arbitration/tests/test1.md The contract solves a case of interaction between smart contracts, using the
I hope, the example may be useful to you. You suggest a special syntax for the |
I have upgraded to EOSfactory 3.0.1 and retry what you say. The result is, still, Error 3090003 As stated in my first post, the issue is not on setting the The issue is how to keep both For example using the eosio hello world contract with the following test code
The first Here are the console output start from the first
|
I use the |
Thank you for the notion. I believe that the issue is not on the Anyway I try what your say by replace the set_account_permission part as follow
The output...
As you can see from the ouput, by setting only
Could you please try either my or your way to set the BTW, when using I will say that because I have try using EOSfactory on python interpreter. I create an account and do something then just leave it without stop the local test node. After some time and do the same action again, it show the Error 3090003. I do not know if these two are related or not, just for your reference. |
Let us consider the command:
It implements the command Now, we execute the action:
The code of the action checks the authority of the user which is This is how I see the issue now. Am I wrong? If you want to be sure about the status of the wallet, you can use the following commands:
Also, you can inspect all the calls to
|
This is your case but
|
See the previous two comments. Here comes the third one. You say:
The main feature of EOSFactory is its compatibility with plain cleos bash work. Will you, please, pass the bash script thet you mention? I want to verify it against EOSFactory. |
Thanks for the elaboration. I understand your point. When using
I found an interesting note that
It appears that --add-code automatically add all current public keys into the keys field, and that is why I can still use original account@active permission. I try the same thing by bring in the CURRENT_PUBLIC_KEY as follow when calling set_account_permission` and it WORKS!!
Thanks you very much! BTW, I still recommend to add something like
|
I am glad to see good news from you. Thank you for your persistance. I will accept your advice. Please, elaborate it more: now I am overworked so much... |
I am sorry for such a long delay: now I correct the method
This improvement will be published soon (v3.1.3) I see now that the last remark of mine, in the previous comment, proves that I really have been overworked then. But, have you ever seen EOSIDE? It is a VSCode extension, available from the Marketplace. I would like to now your opinion on it, very much. |
You must take care of your self ... 💪💪💪 Thanks for the info about EOSIDE, look wonderful for me. |
I follow https://eosfactory.io/build/html/patterns/set/set_account_permission.html#weights-and-threshold and try to add eosio.code permission to account as follow
The eosio.code permission is working but original alice@active is not working anymore. For example when doing a push action like
it shows
I do not know if this is a bug or I just use the wrong way to set permission?
BTW,
alice.info()
looks perfectMy environment
The text was updated successfully, but these errors were encountered: