0

In solana native code. If programA makes a CPI call to programB how can I get the program_id of programA from programB that is I want to make sure that the program making the cpi call to programB is programA is solidity I would use msg.send . how can i achieve thesame in solana? I have seen solutions that say I sould pass the calling programs Account to programB but what stops programA from sending any account ?

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.