Skip to content

Commit

Permalink
fix: lower case token address when parsing issue data
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Oct 25, 2023
1 parent b4bca68 commit 58f8cef
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/processRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: ProcessRequest

on:
issues:
types: [opened]
types: [ opened ]

env:
# Matches labels from field forms to extract data
Expand Down Expand Up @@ -73,6 +73,9 @@ jobs:
return {...acc, ...body.match(r)?.groups}
}, {})
// Lower case the address at the source
values.address = values.address.toLowerCase()
if (values.network === 'MAINNET') {
values.chainId = 1
values.blockExplorer = 'etherscan'
Expand All @@ -99,7 +102,7 @@ jobs:
# force failure for testing
# exit 1

validateInput:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -146,9 +149,9 @@ jobs:
Invalid request
Make sure all the required fields are provided and submit a new issue
optimizeImage:
needs: [extractInfoFromIssue, validateInput]
needs: [ extractInfoFromIssue, validateInput ]
uses: ./.github/workflows/optimizeImage.yml
if: ${{ contains(github.event.issue.labels.*.name, 'addImage') || contains(github.event.issue.labels.*.name, 'addToken') }}
with:
Expand Down

0 comments on commit 58f8cef

Please sign in to comment.