Assume I have two contracts as follows
contract FirstContract{
function anyFunction(){}
}
contract SecondContract{
FirstContract x = new FirstContract();
function anotherFunction(){
x.anyFunction(); ///////
}
}
How can I restrict anyFunction()
so that only SecondContract
can call it and nothing else?