Skip to content

Conversation

fboucquez
Copy link
Contributor

Hi @rg911

I've revisited the is valid address methods. The solution is that RawAddress class handles the low-level byte array validation doing the hashes and checksum checks. The Address class handles the high-level validation, with 2 methods isValidPlainAddress and isValidEncodedAddress that receive strings. The address delegates the validation to RawAddress. I've also added Address.encoded() so you can get the hex string version of the address.

Have a look at let me know what do you think.

@fboucquez fboucquez requested a review from rg911 October 29, 2019 21:27
@coveralls
Copy link

coveralls commented Oct 29, 2019

Pull Request Test Coverage Report for Build 804

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 802: 0.0%
Covered Lines: 10
Relevant Lines: 10

💛 - Coveralls

Copy link
Contributor

@rg911 rg911 left a comment

Choose a reason for hiding this comment

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

small typo only. Good work 👍

@fboucquez fboucquez requested a review from rg911 October 30, 2019 12:17
rg911
rg911 previously approved these changes Oct 30, 2019
@fboucquez fboucquez merged commit 739591e into symbol:master Oct 30, 2019
@fboucquez fboucquez deleted the TS-81-Address.isValidAddress branch October 30, 2019 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants