Skip to content

Commit

Permalink
chore: update Readme and correct row index in script
Browse files Browse the repository at this point in the history
  • Loading branch information
blockchainguyy committed Aug 7, 2024
1 parent 218b366 commit 3eed6ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion evm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
6 changes: 3 additions & 3 deletions evm/check-ownership-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand All @@ -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);
Expand Down

0 comments on commit 3eed6ff

Please sign in to comment.