@@ -28,6 +28,8 @@ import {
2828 IexecPoco1Facet__factory ,
2929 IexecPoco2Facet__factory ,
3030 IexecPocoAccessorsFacet__factory ,
31+ IexecPocoBoostAccessorsFacet__factory ,
32+ IexecPocoBoostFacet__factory ,
3133 IexecRelayFacet__factory ,
3234 OwnershipFacet__factory ,
3335 RLC__factory ,
@@ -88,6 +90,7 @@ export default async function deploy() {
8890 const iexecLibOrders = {
8991 [ 'contracts/libs/IexecLibOrders_v5.sol:IexecLibOrders_v5' ] : iexecLibOrdersAddress ,
9092 } ;
93+ const isArbitrumMainnet = ( await ethers . provider . getNetwork ( ) ) . chainId === 42161n ;
9194 const facets = [
9295 new IexecAccessorsABILegacyFacet__factory ( ) ,
9396 new IexecAccessorsFacet__factory ( ) ,
@@ -101,8 +104,12 @@ export default async function deploy() {
101104 new IexecPoco1Facet__factory ( iexecLibOrders ) ,
102105 new IexecPoco2Facet__factory ( ) ,
103106 new IexecPocoAccessorsFacet__factory ( iexecLibOrders ) ,
104- // new IexecPocoBoostFacet__factory(iexecLibOrders), // not deployed on Arbitrum mainnet
105- // new IexecPocoBoostAccessorsFacet__factory(), // not deployed on Arbitrum mainnet
107+ ...( ! isArbitrumMainnet
108+ ? [
109+ new IexecPocoBoostFacet__factory ( iexecLibOrders ) , // not deployed on Arbitrum mainnet
110+ new IexecPocoBoostAccessorsFacet__factory ( ) , // not deployed on Arbitrum mainnet
111+ ]
112+ : [ ] ) ,
106113 new IexecRelayFacet__factory ( ) ,
107114 ] ;
108115 for ( const facet of facets ) {
0 commit comments