From 87be2674bdc8cc84e27d3babc62123d495ad4302 Mon Sep 17 00:00:00 2001 From: Milap Sheth Date: Thu, 2 Nov 2023 18:43:14 -0400 Subject: [PATCH] lint --- evm/min-deposit-proposal.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/evm/min-deposit-proposal.js b/evm/min-deposit-proposal.js index 667a5201..09d49e5e 100644 --- a/evm/min-deposit-proposal.js +++ b/evm/min-deposit-proposal.js @@ -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; @@ -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}`, - } - ] + }, + ], }); } @@ -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)); }