File tree 2 files changed +10
-2
lines changed
contracts/mocks/crosschain 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ contract BridgeAMBMock is BaseRelayMock {
41
41
* Arbitrum
42
42
*/
43
43
contract BridgeArbitrumL1Mock is BaseRelayMock {
44
+ /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
44
45
address public immutable inbox = address (new BridgeArbitrumL1Inbox ());
46
+ /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
45
47
address public immutable outbox = address (new BridgeArbitrumL1Outbox ());
46
48
47
49
function activeOutbox () public view returns (address ) {
@@ -54,10 +56,12 @@ contract BridgeArbitrumL1Mock is BaseRelayMock {
54
56
}
55
57
56
58
contract BridgeArbitrumL1Inbox {
59
+ /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
57
60
address public immutable bridge = msg .sender ;
58
61
}
59
62
60
63
contract BridgeArbitrumL1Outbox {
64
+ /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
61
65
address public immutable bridge = msg .sender ;
62
66
63
67
function l2ToL1Sender () public view returns (address ) {
Original file line number Diff line number Diff line change @@ -9,10 +9,14 @@ import "../../crosschain/arbitrum/CrossChainEnabledArbitrumL2.sol";
9
9
import "../../crosschain/optimism/CrossChainEnabledOptimism.sol " ;
10
10
import "../../crosschain/polygon/CrossChainEnabledPolygonChild.sol " ;
11
11
12
- abstract contract Receiver is Ownable , CrossChainEnabled {
12
+ abstract contract Receiver is CrossChainEnabled {
13
+ // we don't use Ownable because it messes up testing for the upgradeable contracts
14
+ /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
15
+ address public immutable owner = msg .sender ;
16
+
13
17
function crossChainRestricted () external onlyCrossChain {}
14
18
15
- function crossChainOwnerRestricted () external onlyCrossChainSender (owner () ) {}
19
+ function crossChainOwnerRestricted () external onlyCrossChainSender (owner) {}
16
20
}
17
21
18
22
/**
You can’t perform that action at this time.
0 commit comments