let's assume following solidity contracts:
contract EntryPointContract {
address one = '0x...';
address two = '0x...';
address delegateContract;
constructor(address _delegateContract) {
delegateContract = _delegateContract;
}
function test() public returns(bool) {
(bool success,) = delegateContract.call(abi.encodeWithSignature("checkSender()"));
return success
}
}
contract DelegateContract {
function checkSender() public {
msgs = msg.sender;
}
}
Can I modify the EntryPointContract in some way that i will get address one value from EntryPointContract as msg.sender in DelegateContract ? Is it doable with assembly or opcodes for example or another way?