Skip to content

Commit

Permalink
refactor: add default case for chainType
Browse files Browse the repository at this point in the history
Co-authored-by: Milap Sheth <milap@interoplabs.io>
  • Loading branch information
blockchainguyy and milapsheth authored Oct 3, 2024
1 parent 2b88e49 commit 7ae295f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evm/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ const mainProcessor = async (options, processCommand, save = true, catchErr = fa

if (options.chainNames === 'all') {
chains = Object.keys(config.chains);
chains = chains.filter((chain) => config.chains[chain].chainType === 'evm');
chains = chains.filter((chain) => !config.chains[chain].chainType || config.chains[chain].chainType === 'evm');
} else if (options.chainNames) {
chains = options.chainNames.split(',');
}
Expand Down

0 comments on commit 7ae295f

Please sign in to comment.