3

Contract A calls an inline action on contract B via INLINE_ACTION_SENDER(...).

How can contract B determine that it is being called by contract A?

  • That's a good question that I also want to find out, how to see the action sender account_name. Before using INLINE_ACTION_SENDER please check this out: eosio.stackexchange.com/a/320/54 – Leo Ribeiro May 18 '18 at 14:43
  • 1
    @LeoRibeiro Great pointer! I'm using Dawn 3.0 at the moment but for sure that update for Dawn 4.0 looks solid. – kkurian May 18 '18 at 16:25
1

In Dawn 4.0 at least, when A calls B it does so with an authorization that is specific to itself (generally, contract@eosio.code). B can check the authorization.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.