Skip to content

Commit

Permalink
fix(evm): use trusted address override (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth authored Oct 19, 2024
1 parent f43c4b0 commit 2f1b5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evm/its.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ async function processCommand(config, chain, options) {
if (options.trustedChain === 'all') {
const itsChains = Object.values(config.chains).filter((chain) => chain.contracts?.InterchainTokenService?.skip !== true);
trustedChains = itsChains.map((chain) => chain.axelarId);
trustedAddresses = itsChains.map((_) => chain.contracts?.InterchainTokenService?.address);
trustedAddresses = itsChains.map((_) => options.trustedAddress || chain.contracts?.InterchainTokenService?.address);
} else {
const trustedChain =
getChainConfig(config, options.trustedChain.toLowerCase(), { skipCheck: true })?.axelarId ||
Expand Down

0 comments on commit 2f1b5cc

Please sign in to comment.