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

Adds auths option to the options parameter when calling a contract action #99

Conversation

dallasjohnson
Copy link
Contributor

In order to specify permissions beyond actor@active more granular permissions options are needed which can be provided this via the auths parameter.

This adds the ability to still call an action with the current syntax:
{from: actor}
which will populate the action with the actor@active permission but also add the ability to provide more granular permission options with an option like:
{ auths: [{ actor: "myactor", permission: "transfer"}, {actor: "myfriend", permission: "cosign"}]

This allows for more flexibility while still being able to exercise best contract action security practices of the minimal permissions required to perform an action.

…ermissions options are needed which can be with this via the `auths` parameter.
@MitchPierias MitchPierias merged commit 358d803 into CoinageCrypto:master Oct 8, 2019
@dallasjohnson dallasjohnson deleted the feature/Action-options-for-more-granular-permissions branch October 8, 2019 20:13
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

Successfully merging this pull request may close these issues.

2 participants