eos icon indicating copy to clipboard operation
eos copied to clipboard

Smart Contract API: get sender of the current message

Open andriantolie opened this issue 9 years ago • 3 comments

When trying to write sample contract, I often stumble upon on the case where I need this capability, it will be great if we have one.

andriantolie avatar Oct 13 '17 06:10 andriantolie

would including the senders name in the data field be a solution?

nanonano7 avatar Oct 13 '17 07:10 nanonano7

Yes, that's what I'm currently doing. But I find it to be tedious to add the sender name for every action that exists in the contract.

andriantolie avatar Oct 13 '17 07:10 andriantolie

You can specify the sender in ABI struct. That’s the work who created the smart contract should do. :)

On 13 Oct 2017, at 3:24 PM, nanonano7 [email protected] wrote:

would including the senders name in the data field be a solution?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/563#issuecomment-336372430, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad6ZPlQyW4CTiugBUSSgGV58p7lw6Zdyks5srxApgaJpZM4P4DPh.

ghost avatar Oct 13 '17 08:10 ghost