current position:Home>How to obtain the signature when an external contract calls this contract?

How to obtain the signature when an external contract calls this contract?

2022-02-03 23:18:43 Q & A of Denglian community

This is an external contract :

//  contract A, It's a deployed external contract , I can't control interface ITestB {    function testFuncB() external returns (bool);}contract TestA {    ITestB private testB;    function testFuncA() public returns (bool) {        testB.testFuncB();    }}

This is my own contract , I'd like to place the comment in the , Get the of external call msg.sig

//  Another contract I wrote myself , And contract A Deployed at different addresses contract TestB {    function testFuncB() public returns (bool) {        //  I want to get... Here  testFuncA  Method signature for (msg.sig)    }}

Can you do it ? If you can , How to do it ?






Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032318411890.html

Random recommended