diff --git a/evm/README.md b/evm/README.md index 7e1ae2b3..9c8bbd3a 100644 --- a/evm/README.md +++ b/evm/README.md @@ -228,7 +228,7 @@ node evm/verify-contract.js -e [env] -n [chain] -c TokenManagerProxy --dir /path Download the pending requests [spreadsheet](https://docs.google.com/spreadsheets/d/1zKH1DINTiz83iXbbZRNRurxxZTaU0r5JS4A1c8b9-9A/edit?resourcekey=&gid=1705825087#gid=1705825087) into a csv format. -`node evm/check-ownership-requests.js -f sheet_path.csv` +`node evm/check-ownership-request.js -f sheet_path.csv` ## Verify AxelarAmplifierGateway contract. `--address` can be optionally specified (otherwise will default to the value from config). diff --git a/evm/check-ownership-request.js b/evm/check-ownership-request.js index 64dc9e62..b26a933e 100644 --- a/evm/check-ownership-request.js +++ b/evm/check-ownership-request.js @@ -35,8 +35,8 @@ async function processCommand(config, options) { for (let i = 0; i < data.length; ++i) { const row = data[i]; - const tokenAddress = row[0]; - const destinationChainsRaw = row[2].split(','); + const tokenAddress = row[1]; + const destinationChainsRaw = row[3].split(','); const destinationChains = destinationChainsRaw.map((chain) => chain.trim().toLowerCase()).filter((chain) => chain); const dustTx = row[4]; @@ -46,7 +46,7 @@ async function processCommand(config, options) { const validDestinationChains = destinationChains.filter((chain) => !invalidDestinationChains.includes(chain)); if (validDestinationChains.length > 0) { - finalData[i - totalRowsRemoved][2] = + finalData[i - totalRowsRemoved][3] = validDestinationChains.length === 1 ? `${validDestinationChains[0]}` : `"${validDestinationChains.join(', ')}"`; } else { finalData.splice(i - totalRowsRemoved, 1);