Skip to content

Commit

Permalink
fix(cosmwasm): getChainConfig should return 'undefined' if chain na…
Browse files Browse the repository at this point in the history
…me is 'none' (#347)
  • Loading branch information
jcs47 authored Aug 27, 2024
1 parent 1caa32a commit f62d3e2
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') {
return undefined;
}

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

if (!chainConfig) {
Expand Down

0 comments on commit f62d3e2

Please sign in to comment.