Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Nov 2, 2023
1 parent 8bb7f67 commit 87be267
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions evm/min-deposit-proposal.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function processCommand(_, chain, options) {
governanceAddress = address;
} else {
if (!contractConfig?.address) {
throw new Error(`Contract ${contractName} is not deployed on ${chain.name}`);
throw new Error(`Governance contract not deployed on ${chain.name}`);
}

governanceAddress = contractConfig.address;
Expand All @@ -33,13 +33,13 @@ async function processCommand(_, chain, options) {

values.push({
chain: chain.id.toLowerCase(),
'contract_address': governanceAddress,
'min_deposits': [
contract_address: governanceAddress,
min_deposits: [
{
denom: 'uaxl',
amount: `${parseInt(deposit) * 1e6}`,
}
]
},
],
});
}

Expand All @@ -50,12 +50,14 @@ async function main(options) {
title: 'Update min deposit for governance proposals',
description: `This proposal sets a minimum deposit of ${options.deposit} AXL for any governance proposals for the Axelar gateway contracts.`,
deposit: '2000000000uaxl',
changes: [{
subspace: 'axelarnet',
key: 'callContractsProposalMinDeposits',
value: values,
}],
}
changes: [
{
subspace: 'axelarnet',
key: 'callContractsProposalMinDeposits',
value: values,
},
],
};

printInfo('Proposal', JSON.stringify(paramChange, null, 2));
}
Expand Down

0 comments on commit 87be267

Please sign in to comment.