Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

FAB-16727 Fix address case sensitivity #17

Closed
wants to merge 1 commit into from

Conversation

dplumb94
Copy link

@dplumb94 dplumb94 commented Oct 8, 2019

Addresses can now be matched regardless of case in parsing logs.

Signed-off-by: Darian Plumb dplumb@bitwise.io

Thank you for contributing to the fabric-chaincode-evm project!
Please look at our Contributions Docs and make
sure you have done the following before submitting:

  • Ran the basic checks: make basic-checks
  • Ran the unit tests: make unit-test
  • Ran the integration tests: make integration-test
  • Added the associated JIRA ticket number in the commit message title
  • Link to the JIRA Ticket: https://jira.hyperledger.org/browse/FAB-16727

If you do not have a corresponding JIRA ticket, please open one in the Fabric
JIRA
and add
fabric-chaincode-evm as the component. In the JIRA ticket, include use
cases, design and other information useful to understanding why you are making
this pull request.

If you have any questions please feel free to ask in the #fabric-evm channel
on the Hyperledger Chat.

Thanks again for your contribution!

Addresses can now be matched regardless of case in parsing logs.

Signed-off-by: Darian Plumb <dplumb@bitwise.io>
@swetharepakula
Copy link
Contributor

This PR was done as part of an exercise in Hyperledger Maintainer Summit. Tests will be added afterwards

@swetharepakula
Copy link
Contributor

@MHBauer do we still care about change id? I am thinking since we don't need it since we have branches on github

@MHBauer
Copy link
Contributor

MHBauer commented Oct 8, 2019

changeID is purely a gerrit thing. with switch to github PRs, there is no need for changeID.

We should all probably take the gerrit pre-commit hooks out of our repos.

Copy link
Contributor

@MHBauer MHBauer left a comment

Choose a reason for hiding this comment

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

commit message could use some improvement.

Depending on where we get the input, we should be doing the canonicalization there, rather than inside of the code. The correct place would be the fab3/types#NewAddressFilter()

needs tests.

@@ -727,7 +727,7 @@ LOG_EVENT:
// if no address, empty range, skipped, present but empty address field results in no match
for _, address := range af {
logger.Debugw("trying address match", "matcherAddress", address, "eventAddress", logEvent.Address)
if logEvent.Address == address {
Copy link
Contributor

Choose a reason for hiding this comment

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

should probably do this once on the way in rather than inside a double for loop.

@stale stale bot added the stale label Oct 15, 2019
@swetharepakula
Copy link
Contributor

I will take over this change. Spoke with @dplumb94 offline to confirm.

@stale stale bot removed the stale label Oct 16, 2019
@swetharepakula
Copy link
Contributor

Closing in favor of #18

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
3 participants