peoswallet icon indicating copy to clipboard operation
peoswallet copied to clipboard

Smart contract stake action does not work with custom permission

Open ghost opened this issue 5 years ago • 0 comments

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.

ghost avatar Sep 28 '19 21:09 ghost