Skip to content

Commit

Permalink
getChainConfig should return 'undefined' if chain name is 'none'
Browse files Browse the repository at this point in the history
  • Loading branch information
João Sousa authored and João Sousa committed Aug 27, 2024
1 parent 1caa32a commit 82aae22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ async function getDomainSeparator(config, chain, options) {
}

const getChainConfig = (config, chainName) => {
if (chainName == 'none') {

Check failure on line 409 in common/utils.js

View workflow job for this annotation

GitHub Actions / lint

Expected '===' and instead saw '=='
return undefined;
}

const chainConfig = config.chains[chainName] || config[chainName];

if (!chainConfig) {
Expand Down

0 comments on commit 82aae22

Please sign in to comment.