Closed alxocity closed 1 month ago
Why can you not send in their Address manually as a parameter to the script/transaction?
@bjartek anyone can impersonate anyone else in that case
And the AuthAccount is bad because you really do not want access to their private stuff?
So what you kind of want is a PublicAccount that is an proposer that has signed the payload?
An equivalent is intentionally not supported, see https://cadence-lang.org/docs/solidity-to-cadence#msgsender-considered-harmful
Issue To Be Solved
Currently the only way to detect the account running a function is for them to pass their AuthAccount (bad) or send in a resource reference from their collection (tedious).
Suggest A Solution
Would be nice to have a "sender" like in solidity
or
Have some syntactical sugar for this boilerplate code: