Skip to content

Commit

Permalink
chore(cosmwasm): update axelarnet instantiation (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs47 authored Oct 10, 2024
1 parent 0886e01 commit e96c6ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cosmwasm/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ const makeMultisigProverInstantiateMsg = (config, chainName) => {
};
};

const makeAxelarnetGatewayInstantiateMsg = (config, chainName) => {
const makeAxelarnetGatewayInstantiateMsg = ({ nexus }, config, chainName) => {
const {
axelar: { contracts },
} = config;
Expand All @@ -438,7 +438,6 @@ const makeAxelarnetGatewayInstantiateMsg = (config, chainName) => {

const {
Router: { address: routerAddress },
NexusGateway: { address: nexusAddress },
} = contracts;

if (!isString(axelarId)) {
Expand All @@ -450,8 +449,8 @@ const makeAxelarnetGatewayInstantiateMsg = (config, chainName) => {
}

return {
nexus,
router_address: routerAddress,
nexus_gateway: nexusAddress,
chain_name: axelarId.toLowerCase(),
};
};
Expand Down Expand Up @@ -542,7 +541,7 @@ const makeInstantiateMsg = (contractName, chainName, config) => {
throw new Error('AxelarnetGateway requires chainName option');
}

return makeAxelarnetGatewayInstantiateMsg(config, chainName);
return makeAxelarnetGatewayInstantiateMsg(contractConfig, config, chainName);
}
}

Expand Down

0 comments on commit e96c6ac

Please sign in to comment.