Skip to content

Commit

Permalink
SNB hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy-skalelabs committed Dec 19, 2023
1 parent f614d33 commit b0a1795
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion npms/skale-observer/observer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ const gArrChainIdsSupportedByMulticall = [
];

async function isMulticallAvailable( mn ) {
// return true;
if( mn && mn.ethersProvider ) {
const { chainId } = await mn.ethersProvider.getNetwork();
const bnChainId = owaspUtils.toBN( chainId );
Expand Down Expand Up @@ -196,6 +197,7 @@ export async function loadSChainParts( joSChain, opts ) {
const multicall = new EMC.Multicall( {
ethersProvider: opts.imaState.chainProperties.mn.ethersProvider,
tryAggregate: true
//, multicallCustomContractAddress: "0xcA11bde05977b3631167028862bE2a173976CA11"
} );
const strRef0 = "Nodes-nodes";
const strRef1 = "Nodes-getNodeDomainName";
Expand Down Expand Up @@ -425,6 +427,7 @@ export async function loadSChainsWithEMC( opts ) {
const multicall = new EMC.Multicall( {
ethersProvider: opts.imaState.chainProperties.mn.ethersProvider,
tryAggregate: true
//, multicallCustomContractAddress: "0xcA11bde05977b3631167028862bE2a173976CA11"
} );
const cntGroupMax = 30, cntLastExtraGroup = cntSChains % cntGroupMax;
const bHaveExtraGroup = ( cntLastExtraGroup > 0 ) ? true : false;
Expand Down Expand Up @@ -652,6 +655,7 @@ export async function getAllSchainNames( arrSChainHashes, opts ) {
const multicall = new EMC.Multicall( {
ethersProvider: opts.imaState.chainProperties.mn.ethersProvider,
tryAggregate: true
//, multicallCustomContractAddress: "0xcA11bde05977b3631167028862bE2a173976CA11"
} );
const strRef3 = "SchainsInternal-getSchainName";
const contractCallContext = [ {
Expand Down Expand Up @@ -1296,7 +1300,8 @@ export async function ensureHaveWorker( opts ) {
opts.imaState.joSChainDiscovery.repeatIntervalMilliseconds,
"periodicDiscoveryInterval":
opts.imaState.joSChainDiscovery.periodicDiscoveryInterval
}
},
"isEnabledMultiCall": opts.imaState.isEnabledMultiCall
}
},
"cc": {
Expand Down

0 comments on commit b0a1795

Please sign in to comment.