@@ -90,21 +90,27 @@ export default async function deploy() {
9090 const iexecLibOrders = {
9191 [ 'contracts/libs/IexecLibOrders_v5.sol:IexecLibOrders_v5' ] : iexecLibOrdersAddress ,
9292 } ;
93+ const isArbitrumMainnet = ( await ethers . provider . getNetwork ( ) ) . chainId === 42161n ;
9394 const facets = [
94- new IexecAccessorsFacet__factory ( ) ,
9595 new IexecAccessorsABILegacyFacet__factory ( ) ,
96+ new IexecAccessorsFacet__factory ( ) ,
9697 new IexecCategoryManagerFacet__factory ( ) ,
98+ new IexecConfigurationExtraFacet__factory ( ) ,
99+ new IexecConfigurationFacet__factory ( iexecLibOrders ) ,
97100 new IexecERC20Facet__factory ( ) ,
98101 isTokenMode ? new IexecEscrowTokenFacet__factory ( ) : new IexecEscrowNativeFacet__factory ( ) ,
99- new IexecConfigurationFacet__factory ( iexecLibOrders ) ,
102+ // new IexecEscrowTokenSwapFacet__factory(), not deployed.
100103 new IexecOrderManagementFacet__factory ( iexecLibOrders ) ,
101104 new IexecPoco1Facet__factory ( iexecLibOrders ) ,
102105 new IexecPoco2Facet__factory ( ) ,
103- new IexecRelayFacet__factory ( ) ,
104- new IexecConfigurationExtraFacet__factory ( ) ,
105106 new IexecPocoAccessorsFacet__factory ( iexecLibOrders ) ,
106- new IexecPocoBoostFacet__factory ( iexecLibOrders ) ,
107- new IexecPocoBoostAccessorsFacet__factory ( ) ,
107+ ...( ! isArbitrumMainnet
108+ ? [
109+ new IexecPocoBoostFacet__factory ( iexecLibOrders ) , // not deployed on Arbitrum mainnet
110+ new IexecPocoBoostAccessorsFacet__factory ( ) , // not deployed on Arbitrum mainnet
111+ ]
112+ : [ ] ) ,
113+ new IexecRelayFacet__factory ( ) ,
108114 ] ;
109115 for ( const facet of facets ) {
110116 const address = await factoryDeployer . deployContract ( facet ) ;
0 commit comments