Skip to content

Commit

Permalink
add transpilation guards to the crosschain mocks (#3306)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9af5af8)
Signed-off-by: Hadrien Croubois <[email protected]>
  • Loading branch information
Amxx committed Mar 31, 2022
1 parent ab54fcb commit 6096b53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/mocks/crosschain/receivers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ abstract contract Receiver is Ownable, CrossChainEnabled {
* AMB
*/
contract CrossChainEnabledAMBMock is Receiver, CrossChainEnabledAMB {
/// @custom:oz-upgrades-unsafe-allow constructor
constructor(address bridge) CrossChainEnabledAMB(bridge) {}
}

/**
* Arbitrum
*/
contract CrossChainEnabledArbitrumL1Mock is Receiver, CrossChainEnabledArbitrumL1 {
/// @custom:oz-upgrades-unsafe-allow constructor
constructor(address bridge) CrossChainEnabledArbitrumL1(bridge) {}
}

Expand All @@ -35,12 +37,14 @@ contract CrossChainEnabledArbitrumL2Mock is Receiver, CrossChainEnabledArbitrumL
* Optimism
*/
contract CrossChainEnabledOptimismMock is Receiver, CrossChainEnabledOptimism {
/// @custom:oz-upgrades-unsafe-allow constructor
constructor(address bridge) CrossChainEnabledOptimism(bridge) {}
}

/**
* Polygon
*/
contract CrossChainEnabledPolygonChildMock is Receiver, CrossChainEnabledPolygonChild {
/// @custom:oz-upgrades-unsafe-allow constructor
constructor(address bridge) CrossChainEnabledPolygonChild(bridge) {}
}

0 comments on commit 6096b53

Please sign in to comment.