Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lowercase token addresses directories #287

Merged
merged 6 commits into from
Oct 16, 2023
Merged

Conversation

shoom3301
Copy link
Contributor

@shoom3301 shoom3301 commented Oct 13, 2023

  1. Lowercased existing directories (commit)
  2. Lowercased logoURI in info.json files (commit)
  3. Lowercased logoURI in CowSwap.json (commit)
  4. Added token address lowercasing in executeAction.yml (commit)

@shoom3301 shoom3301 requested a review from a team October 16, 2023 08:08
@shoom3301 shoom3301 marked this pull request as ready for review October 16, 2023 08:08
Copy link
Collaborator

@alfetopito alfetopito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, I should have done this in the first place 🙈

BTW, not all token image urls can be lower cased. See the comments.

Also, this should be updated too

file_path = f'src/public/images/{data["chainId"]}/{data["address"]}/info.json'

Comment on lines +31 to +35
# https://stackoverflow.com/questions/62627931/github-actions-expression-functions-string-manipulation
- name: Set address lowercase
id: setAddressLowerCase
run: INPUT=${{ fromJSON(inputs.issueInfo).address }} echo "::set-output name=addressLowerCase::${INPUT,,}"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great you added also the stackoverflow ref!

@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@shoom3301
Copy link
Contributor Author

Thanks for this, I should have done this in the first place 🙈

BTW, not all token image urls can be lower cased. See the comments.

Also, this should be updated too

file_path = f'src/public/images/{data["chainId"]}/{data["address"]}/info.json'

@alfetopito thanks! fixed it as well

@shoom3301
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@shoom3301 shoom3301 merged commit f069ba8 into main Oct 16, 2023
@shoom3301 shoom3301 deleted the fix/lowercase-address branch October 16, 2023 15:49
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants