Skip to content

Commit bef6b93

Browse files
committed
refactor: Simplify upgrade script by removing native chain check
1 parent a2a3ad0 commit bef6b93

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

scripts/upgrades/v6.2.0.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
IexecPocoAccessorsFacet__factory,
1515
IexecRelayFacet__factory,
1616
} from '../../typechain';
17-
import { getChainConfig, isNativeChain } from '../../utils/config';
1817
import {
1918
FacetDetails,
2019
deployFacets,
@@ -32,10 +31,6 @@ async function main() {
3231
const { chainId, networkName, deployer, proxyOwner, proxyAddress, iexecLibOrders } =
3332
await getUpgradeContext();
3433

35-
// Determine if this is a native or token chain
36-
const chainConfig = getChainConfig(chainId);
37-
const isNative = isNativeChain(chainConfig);
38-
3934
// Define all facets to remove (all existing facets except core diamond facets)
4035
const facetAddressesPerChain: { [key: string]: { [key: string]: string } } = {
4136
// Arbitrum Sepolia
@@ -102,8 +97,8 @@ async function main() {
10297
factory: null,
10398
},
10499
{
105-
name: isNative ? 'IexecEscrowNativeFacet' : 'IexecEscrowTokenFacet',
106-
address: addresses['IexecEscrowTokenFacet'], // Both chains use token mode
100+
name: 'IexecEscrowTokenFacet',
101+
address: addresses['IexecEscrowTokenFacet'],
107102
factory: null,
108103
},
109104
{

0 commit comments

Comments
 (0)