Fix arbitrum L1 to L2 crosschain call detection (#3578)

* Fix arbitrum L1 to L2 crosschain call detection

* fix BridgeArbitrumL2Mock

* update changelog

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2022-07-25 22:42:37 +02:00
committed by GitHub
parent 7ddbfe181e
commit 81336aefb5
3 changed files with 7 additions and 10 deletions

View File

@ -70,14 +70,10 @@ contract BridgeArbitrumL1Outbox {
}
contract BridgeArbitrumL2Mock is BaseRelayMock {
function isTopLevelCall() public view returns (bool) {
function wasMyCallersAddressAliased() public view returns (bool) {
return _currentSender != address(0);
}
function wasMyCallersAddressAliased() public pure returns (bool) {
return true;
}
function myCallersAddressWithoutAliasing() public view returns (address) {
return _currentSender;
}