Avoid to add Relay Chain Genesis Hash for Ethereum chain even if they are system parachain (#11884)

This commit is contained in:
Michele d'Amico 2025-11-10 15:19:27 +01:00 committed by GitHub
parent 0b00fbf7c5
commit 28f6146d06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,7 +168,7 @@ async function loadOnReady (api: ApiPromise, endpoint: LinkOption | null, fork:
// finally load the keyring
isKeyringLoaded() || keyring.loadAll({
genesisHash: api.genesisHash,
genesisHashAdd: endpoint && isNumber(endpoint.paraId) && (endpoint.paraId < 2000) && endpoint.genesisHashRelay
genesisHashAdd: !isEthereum && endpoint && isNumber(endpoint.paraId) && (endpoint.paraId < 2000) && endpoint.genesisHashRelay
? [endpoint.genesisHashRelay]
: [],
isDevelopment,