Skip to content

Commit

Permalink
fix: use nativeChain to compare
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Dec 6, 2024
1 parent fb61569 commit 4144123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/generate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ async function updateGenesisFile() {
// but first, check that it doesn't already exist.
let nativeChainExists = false;
for (let i = 0; i < genesisJSON.app_state.assets.client_chains.length; i++) {
if (genesisJSON.app_state.assets.client_chains[i].chain_id == clientChainInfo.chain_id) {
if (genesisJSON.app_state.assets.client_chains[i].layer_zero_chain_id == nativeChain.layer_zero_chain_id) {
nativeChainExists = true;
break;
}
Expand Down

0 comments on commit 4144123

Please sign in to comment.