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

Smart contract stake action does not work with custom permission #6

Open
ghost opened this issue Sep 28, 2019 · 0 comments
Open

Smart contract stake action does not work with custom permission #6

ghost opened this issue Sep 28, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 28, 2019

I'm writing this feedback here because I don't think the smart contract repo is public. I hope it's fine.

The action thepeostoken::stake does not seem to work with a custom permission. I get an error "Authorization failure with inline action sent to self". My custom permission has linked authority for both thepeostoken::stake and thepeostoken::transfer. My hunch is that the inline action in the smart contract to transfer staked pEOS from my account to the contract account has a hard-coded permission "active" on it. Staking works fine when I call it with the active permission.

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

0 participants