diff --git a/cosmwasm/submit-proposal.js b/cosmwasm/submit-proposal.js index 441b86d5..d1ce889f 100644 --- a/cosmwasm/submit-proposal.js +++ b/cosmwasm/submit-proposal.js @@ -295,7 +295,7 @@ const programHandler = () => { options.chains = chains; mainProcessor(registerItsChain, options); }); - addAmplifierOptions(registerItsChainCmd, { registerItsChainOptions: true, proposalOptions: true, runAs: true }); + addAmplifierOptions(registerItsChainCmd, { proposalOptions: true, runAs: true }); const paramChangeCmd = program .command('paramChange') diff --git a/cosmwasm/utils.js b/cosmwasm/utils.js index 787feb39..db908848 100644 --- a/cosmwasm/utils.js +++ b/cosmwasm/utils.js @@ -66,6 +66,10 @@ const getLabel = ({ contractName, label }) => label || contractName; const readWasmFile = ({ artifactPath, contractName }) => readFileSync(`${artifactPath}/${pascalToSnake(contractName)}.wasm`); const initContractConfig = (config, { contractName, chainName }) => { + if (!contractName) { + return; + } + config.axelar = config.axelar || {}; config.axelar.contracts = config.axelar.contracts || {}; config.axelar.contracts[contractName] = config.axelar.contracts[contractName] || {};