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?

2
  • 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 Commented May 18, 2018 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
    Commented May 18, 2018 at 16:25

1 Answer 1

1

In Dawn 4.0 at least, when A calls B it does so with an authorization that is specific to itself (generally, [email protected]). B can check the authorization.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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