From 6096b53841c8811e026222de76bcde4dcbcc5bb3 Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Thu, 31 Mar 2022 20:04:04 +0200 Subject: [PATCH] add transpilation guards to the crosschain mocks (#3306) (cherry picked from commit 9af5af8fffe9964cd1d20a39f399fea173d18653) Signed-off-by: Hadrien Croubois --- contracts/mocks/crosschain/receivers.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/mocks/crosschain/receivers.sol b/contracts/mocks/crosschain/receivers.sol index 57b9b5d7e9f..06498c5038e 100644 --- a/contracts/mocks/crosschain/receivers.sol +++ b/contracts/mocks/crosschain/receivers.sol @@ -19,6 +19,7 @@ abstract contract Receiver is Ownable, CrossChainEnabled { * AMB */ contract CrossChainEnabledAMBMock is Receiver, CrossChainEnabledAMB { + /// @custom:oz-upgrades-unsafe-allow constructor constructor(address bridge) CrossChainEnabledAMB(bridge) {} } @@ -26,6 +27,7 @@ contract CrossChainEnabledAMBMock is Receiver, CrossChainEnabledAMB { * Arbitrum */ contract CrossChainEnabledArbitrumL1Mock is Receiver, CrossChainEnabledArbitrumL1 { + /// @custom:oz-upgrades-unsafe-allow constructor constructor(address bridge) CrossChainEnabledArbitrumL1(bridge) {} } @@ -35,6 +37,7 @@ contract CrossChainEnabledArbitrumL2Mock is Receiver, CrossChainEnabledArbitrumL * Optimism */ contract CrossChainEnabledOptimismMock is Receiver, CrossChainEnabledOptimism { + /// @custom:oz-upgrades-unsafe-allow constructor constructor(address bridge) CrossChainEnabledOptimism(bridge) {} } @@ -42,5 +45,6 @@ contract CrossChainEnabledOptimismMock is Receiver, CrossChainEnabledOptimism { * Polygon */ contract CrossChainEnabledPolygonChildMock is Receiver, CrossChainEnabledPolygonChild { + /// @custom:oz-upgrades-unsafe-allow constructor constructor(address bridge) CrossChainEnabledPolygonChild(bridge) {} }